Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wyphan opened this issue Feb 10, 2022 · 2 comments

Comments

@wyphan
Copy link

wyphan commented Feb 10, 2022

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
Copy link
Owner

brezerk commented Feb 10, 2022

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 brezerk self-assigned this Feb 10, 2022
@wyphan
Copy link
Author

wyphan commented Feb 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants