brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
204 stars 40 forks source link

[Feature Request] Allow running wine executables with extra environment variables or through `env` #192

Open wyphan opened 2 years ago

wyphan commented 2 years ago

It would be nice if q4wine allows setting extra environment variables to be passed on to the wine command. For my use case, I need it to pass MESA_GL_VERSION_OVERRIDE=4.5 to fix the GLXBadFBConfig error that I get with some games.

I've tried using export MESA_GL_VERSION_OVERRIDE=4.5 as the pre run script, but it didn't work.

For now, the only way for me to launch the game is right-clicking on the icon in q4wine, selecting "Console" > "Open console in application directory", then manually type export MESA_GL_VERSION_OVERRIDE=4.5 and then wine game.exe to launch the game.

brezerk commented 2 years ago

hi @wyphan thank you for the feature request.

q4wine already allows you to supply extra environment variables. You can do this using prefix execution template string:

зображення

See description at q4wine home page: https://q4wine.brezblock.org.ua/documentation/en_us/10-prefix-settings.html#advanced

Let me know if is what you are looking for.

Thanks

wyphan commented 2 years ago

@brezerk Yes, that's what I'm looking for! It would be nice though if there is some mechanism in q4wine to modify %ENV_ARGS%, instead of manually editing the execution template string.