mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Also fall back to default if no app-specific config exists
This commit is contained in:
parent
6a408e8404
commit
0a63b8b007
|
@ -1960,7 +1960,8 @@ class LegendaryCLI:
|
||||||
|
|
||||||
args.prefix = self.core.lgd.config.get(f'{app_name}.env', 'WINEPREFIX', fallback=None)
|
args.prefix = self.core.lgd.config.get(f'{app_name}.env', 'WINEPREFIX', fallback=None)
|
||||||
args.prefix = self.core.lgd.config.get(app_name, 'wine_prefix', fallback=args.prefix)
|
args.prefix = self.core.lgd.config.get(app_name, 'wine_prefix', fallback=args.prefix)
|
||||||
else:
|
|
||||||
|
if not args.prefix and not args.bottle:
|
||||||
# try using defaults if they exist
|
# try using defaults if they exist
|
||||||
if sys_platform == 'darwin':
|
if sys_platform == 'darwin':
|
||||||
args.bottle = self.core.lgd.config.get('default', 'crossover_bottle', fallback=None)
|
args.bottle = self.core.lgd.config.get('default', 'crossover_bottle', fallback=None)
|
||||||
|
|
Loading…
Reference in a new issue