[core] Add wine_prefix config option

This commit is contained in:
derrod 2020-06-01 08:36:06 +02:00
parent a0329a73a9
commit c216341467

View file

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