mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Add wine_prefix config option
This commit is contained in:
parent
a0329a73a9
commit
c216341467
|
@ -371,6 +371,10 @@ class LegendaryCore:
|
|||
|
||||
if wine_pfx:
|
||||
env['WINEPREFIX'] = wine_pfx
|
||||
elif 'WINEPREFIX' not in env:
|
||||
# only use config variable if not already set in environment
|
||||
if wine_pfx := self.lgd.config.get(app_name, 'wine_prefix', fallback=None):
|
||||
env['WINEPREFIX'] = wine_pfx
|
||||
|
||||
return params, working_dir, env
|
||||
|
||||
|
|
Loading…
Reference in a new issue