winegui / WineGUI

At last, a user-friendly Wine graphical interface (mirror from Gitlab)
https://gitlab.melroy.org/melroy/winegui
GNU Affero General Public License v3.0
232 stars 10 forks source link

pass environment variables to wine #20

Closed geovex closed 2 months ago

geovex commented 11 months ago

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

melroy89 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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

nisetynet commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

melroy89 commented 6 months ago

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

melroy89 commented 2 months ago

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.

I think I will start working on this item.

I also think the easiest way is to indeed implement a list (aka array) of environment variable(s) a user can configure on the "bottle" level.

Since I think configuring env vars per application will make the UI too complex for most people.

melroy89 commented 2 months ago

This is now resolved! https://gitlab.melroy.org/melroy/winegui/-/merge_requests/37

I will release v2.6.0 soon, which will have this functionality.