Wine .desktop environment

Questions about Wine on Linux
Locked
Oschtan
Newbie
Newbie
Posts: 1
Joined: Sat May 30, 2020 11:03 am

Wine .desktop environment

Post by Oschtan »

Hi! There was such a question. Is it possible to enter the DRI_PRIME = 1 parameter somewhere so that it is automatically correctly added to the launch command of the application to be installed? It does not seem convenient to launch applications from the console with the addition of this option. Thank.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Wine .desktop environment

Post by jkfloris »

You can set the variable in the .desktop file.
Open the .desktop file in your favorite text editor and add DRI_PRIME=1 to the Exec= line

Code: Select all

[Desktop Entry]
...
Exec=env DRI_PRIME=1 WINEPREFIX= ... wine ...
...
Locked