q4wine icon indicating copy to clipboard operation
q4wine copied to clipboard

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

Open wyphan opened this issue 3 years ago • 2 comments

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.

wyphan avatar Feb 10 '22 01:02 wyphan

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

brezerk avatar Feb 10 '22 21:02 brezerk

@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.

wyphan avatar Feb 10 '22 21:02 wyphan