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

pass environment variables to wine #20

Open
geovex opened this issue Nov 10, 2023 · 7 comments
Open

pass environment variables to wine #20

geovex opened this issue Nov 10, 2023 · 7 comments

Comments

@geovex
Copy link

geovex commented Nov 10, 2023

Is there any way to configure different environment variables for "machines". I'm mostly interested in passing different LANG

@melroy89
Copy link
Member

Uhm. Good request. I didn't implement such feature. I could add this in the future so you can add additional environment variables to the wine bottle.

The only alternative for now is to do it manually using command line with the correct wine prefix.

@geovex
Copy link
Author

geovex commented Nov 10, 2023

I tried modify wine registry, but it works only for running applications, not wine itself and it won't solve any encoding issues. The only alternative for now is starting winegui in prepared environment (and it will share environment across machines) or start wine manually (kind of defeats the purpose)

@melroy89
Copy link
Member

I agree, again it's not implemented. Thanks for your feedback.

@nisetynet
Copy link

https://github.com/nisetynet/WineGUI/commits/implement_env_vars_support/

I was able to supply environment variables to wine without affecting existing code.
I could pass the environment variable in BottleManager::run_executable function, but I am not sure if we should have an environment variable setting for each Bottle or if we should ask the user to enter the environment variable each time they press the Run button.

@melroy89
Copy link
Member

The former. I should make an option at Edit to add environment variables to the bottle. Which gets added to the run or maybe also to the application list.

@nisetynet
Copy link

nisetynet commented Feb 18, 2024

If you don't have time for this, I'll try on behalf of you.

@melroy89
Copy link
Member

melroy89 commented May 5, 2024

Upstream ticket is created: https://gitlab.melroy.org/melroy/winegui/-/issues/41

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

No branches or pull requests

3 participants