[cli] Also fall back to default if no app-specific config exists

This commit is contained in:
derrod 2021-12-31 18:58:36 +01:00
parent 6a408e8404
commit 0a63b8b007

View file

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