You are not logged in.

#1 2024-06-11 19:05:26

nooobeee
Member
Registered: 2021-09-17
Posts: 27

[Resolved] Define multiple environment variables in .desktop

I have gotten DaVinci Resolve running but need to define a couple of parameters for it to start properly due to intel/nvidia hybrid graphics as documented under 3.10 on https://wiki.archlinux.org/title/DaVinci_Resolve.

I did this on Fedora by changing the .desktop file from:

Exec=/opt/resolve/bin/resolve %u

to:

Exec=__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /opt/resolve/bin/resolve %u

However this does not seem to play well with Rofi's drun option.  I've tried adding quotes encompassing the entire line but this also does not work.

From a terminal, I can launch it using:

export __NV_PRIME_RENDER_OFFLOAD=1;
export __GLX_VENDOR_LIBRARY_NAME=nvidia;
/opt/resolve/bin/resolve

Any thoughts on how I can adjust the .desktop file with those parameters so that Rofi will launch it?

Last edited by nooobeee (2024-06-11 19:33:52)

Offline

#2 2024-06-11 19:31:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,714
Website

Re: [Resolved] Define multiple environment variables in .desktop

You're missing `env`:

Exec=env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /opt/resolve/bin/resolve %u

To Be A Dev: propose idea; invite feedback; mock, ridicule, and ostracize any critical feedback; but be warm and kind to those who kiss your ring.

Offline

#3 2024-06-11 19:33:28

nooobeee
Member
Registered: 2021-09-17
Posts: 27

Re: [Resolved] Define multiple environment variables in .desktop

That was it, good catch.  Thank you!!!

Offline

Board footer

Powered by FluxBB