This applet is intended for owners of laptops with Nvidia hybrid graphics (Intel + Nvidia, AMD + Nvidia) running Linux with the KDE Plasma desktop environment. It is designed to make it easy to run applications on a discrete graphics card using Nvidia PRIME technology without having to relogin the session
Relatively recently, Nvidia introduced PRIME Offloading for laptops with hybrid graphics, but did not take care of the convenience of using this technology for Linux end users. To use this technology, the user had to open a terminal and run an application through it using long and hard-to-remember environment variables. I was able to solve this by simplifying the use of this technology by reducing everything to two mouse clicks
This applet is only for KDE Plasma users and only for laptops with Nvidia hybrid graphics
If you get a permissions error when trying to run something using the applet, check the file permissions for execution: right-click on the file, Properties -> Permisions - there should be a tick on "Is executable". If for some reason it is not checked, check it and click "OK"
Basically, it just inserts environment variables provided by Nvidia before executing the program. It works with shell-scripts, Linux executables, and .desktop files
- Laptop with Nvidia hybrid graphics
- Nvidia proprietary driver (version 430 and above)
- KDE Plasma (any version)
- Package kde-cli-tools (because the service calls kioclient)
Copy the contents of the nvidia-prime-apprunner-kde directory to ~/.local/share/ (In other words: /home/your_name/.local/share/). If there is a request to replace files - agree
Delete the file "NvidiaPrimeAppRunner.desktop" along the path ~/.local/share/kio/servicemenus/ and ~/.local/share/plasma/kickeractions/
Just right click on the executable and click "Start on Nvidia". If you installed the applet correctly, it should appear in the context menu when you click on the file
Work tested on Asus X555LJ laptop with Intel HD Graphisc 5500 + Nvidia GeForce 920M
Happy using! =)