Lutris: Apply envars (including esync) when opening Wine Configuration/Registry/Winetricks/Joystick Panel/Run as Exe

Created on 4 Mar 2019  路  4Comments  路  Source: lutris/lutris

Wineserver process of the same prefix can't be opened with WINESYNC envar set to 0 and 1 at the same time or in other words, esync both turned on and turned off. As Lutris doesn't set that envar when opening Wine Configuration/Registry/Winetricks/Joystick Panel/Run EXE, launching a game at the same time will fail if Esync option is enabled as in that case, that envar is passed.
So to avoid this issue, it must apply envars when opening these menus too, including the ones that are passed when DXVK option is enabled and the ones that are stored in the configuration.

Most helpful comment

What does that even mean "WINESYNC envar set to 0 and 1 at the same time". Is it schrodinger's environment variable?

No. It's just if you execute these options before starting the game itself by pressing "Play", envars such as WINEESYNC will not be passed and default to turned off (0).
So when you do launch the game through "Play" with WINEESYNC envar passed on and set to 1, it will conflict as wineserver can't run both with esync off and on.

All 4 comments

What does that even mean "WINESYNC envar set to 0 and 1 at the same time". Is it schrodinger's environment variable?

What does that even mean "WINESYNC envar set to 0 and 1 at the same time". Is it schrodinger's environment variable?

No. It's just if you execute these options before starting the game itself by pressing "Play", envars such as WINEESYNC will not be passed and default to turned off (0).
So when you do launch the game through "Play" with WINEESYNC envar passed on and set to 1, it will conflict as wineserver can't run both with esync off and on.

Apparently it was not fixed by that, at least not for all options.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jipok picture Jipok  路  4Comments

tannisroot picture tannisroot  路  3Comments

toni0491 picture toni0491  路  4Comments

romulasry picture romulasry  路  3Comments

testman42 picture testman42  路  4Comments