From cf8bccc569720a61e9a29d96f0aaca94064a6ba2 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 7 Jan 2022 13:51:25 +0100 Subject: [PATCH] [core] Final adjustments to default path, separate config option for Mac --- legendary/core.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/legendary/core.py b/legendary/core.py index fd8b25a..1e86924 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -1472,13 +1472,9 @@ class LegendaryCore: def get_default_install_dir(self, platform='Windows'): if platform == 'Mac': - _fallback = '~/Applications' - elif os.name == 'nt': - _fallback = '~/legendary' + return os.path.expanduser(self.lgd.config.get('Legendary', 'mac_install_dir', fallback='~/Applications')) else: - _fallback = '~/Games/legendary' - - return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback=_fallback)) + return os.path.expanduser(self.lgd.config.get('Legendary', 'install_dir', fallback='~/Games')) def install_game(self, installed_game: InstalledGame) -> dict: if self.egl_sync_enabled and not installed_game.is_dlc and installed_game.platform.startswith('Win'):