This is a problem because KDE has a few system functions like in the applications menu to configure an application to run with the dGPU, or in KDE context menu to launch something with the dGPU.
Those options do not show up while this flag is false. I also don’t know how to fix it. This has been an issue since I set up manjaro kde a while back.
Edit: The function to run on the discrete gpu in kde relies on the DRI_PRIME variable, it wouldn’t actually work even if the option was visible I believe. Think maybe the issue is just KDE being outdated
[Desktop Entry]
Actions=primeRun;
Type=Service
MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/mp4;video/x-m4v;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/mp2t;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;application/x-matroska;video/webm;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-video;application/x-shorten;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;video/3gp;video/3gpp;video/3gpp2;video/dv;application/x-cue;application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;application/x-nintendo-3ds-executable;application/x-executable;application/x-shellscript;
[Desktop Action primeRun]
Name=Run on Nvidia GPU
Comment=Run the file or application on the Nvidia GPU.
Icon=nvidia-settings
TryExec=prime-run
Exec=prime-run mimeopen -n %U || prime-run %U
Terminal=false
this should provide an option to run any video file or executable on the dgpu (first tries to open with file association and if that fails it tries to execute the file). you can remove the || prime-run %U bit if you do not want to use this to execute linux native executables.
Used mimeopen instead of xdg-open or kde-open because the latter two gave me odd errors on wine-executables