CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Reply to Thread Back to Threads

Hybrid Graphics (DRI_PRIME)
Jennifer M. Morse
Posted 2017-10-09 12:09
I have a number of launchers with commands that look something like this:

"/home/user/.cxoffice/Rift/desktopdata/cxmenu/StartMenu.C^5E3A_users_Public_Start^2BMenu/Programs/Glyph/Glyph.lnk" %u

How/where do I add "DRI_PRIME=1"  so that I can use the more powerful half of my hybrid graphics setup?
Silvio M Kozasa
Silvio M Kozasa Chief Senior Advocate
Posted 2017-10-09 13:53
Environment variables like "DRI_PRIME=1" are placed before the command itself, for instance:

DRI_PRIME=1 glxgears

So, I think you can put it in the beginning of the line you mentioned is in the laucher, OR you can edit the .lnk file itself, which contains an exec command and place it before the exec.
Jennifer M. Morse
Posted 2017-10-10 10:54
If I put it at the start of the launcher command I get an error message.

How do I edit the lnk?
Silvio M Kozasa
Silvio M Kozasa Chief Senior Advocate
Posted 2017-10-10 13:53
You need to open up a terminal, then go to the folder with the .lnk file:

cd /home/user/.cxoffice/Rift/desktopdata/cxmenu/StartMenu.C^5E3A_users_Public_Start^2BMenu/Programs/Glyph/

Then you may use your favorite text editor (I use kate - I'm a KDE user), but I like mcedit when I'm on a text terminal. You may use the one that comes with your distro, like vi or nano:

nano glyph.lnk

or you can type the whole path together with the filename:

nano /home/user/.cxoffice/Rift/desktopdata/cxmenu/StartMenu.C^5E3A_users_Public_Start^2BMenu/Programs/Glyph/glyph.lnk

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

Please Wait...