Set "start with dedicate graphic card" permanently

I have a laptop with nvidia driver installed. I have a program, that I use it often. To start if with Nvidia card, I need to right-click it and select “start with dedicate card”. But I would the program start per default with dedicate graphic card. How I can make this?

Welcome to ask.:fedora:edora @grumpfel

Could you please give us more info’s as :

inxi -Fzx in terminal and post the output as </> Preformatted text here.

We don’t have this program, give name and link it.

I mean this

That is part of Gnome, ist it?

I think you should be able to create a new desktop launcher (davinciwithgpu.desktop), search for it on this site, where the Exec command looks like this

[Desktop Entry]
Name=DaVince with GPU rendering
Exec=__NV_PRIME_RENDER_OFFLOAD=1 /path/to/yourprogram



Additional info:

I had hope, there are more easy way. Also, after every program that need to start with dedicate GPU, have the two launcher.

Or you modify the existing launcher…?

If using Nvidia exclusively is an option, you can add

PrimaryGPU = "yes"

To your nvidia.conf file (reference)