From b18212174fd6b7f8680f1f2c6964f564368e9461 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Tue, 17 Dec 2024 23:03:07 +1100 Subject: [PATCH] Use Application Support instead of homedir --- Utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Utils.py b/Utils.py index 9dccd5c68b9b..b6aae9981bed 100644 --- a/Utils.py +++ b/Utils.py @@ -151,9 +151,12 @@ def home_path(*path: str) -> str: """Returns path to a file in the user home's Archipelago directory.""" if hasattr(home_path, 'cached_path'): pass - elif sys.platform.startswith('linux') or sys.platform == 'darwin': + elif sys.platform.startswith('linux'): home_path.cached_path = os.path.expanduser('~/Archipelago') os.makedirs(home_path.cached_path, 0o700, exist_ok=True) + elif sys.platform == 'darwin': + home_path.cached_path = os.path.expanduser('~/Library/Application Support/Archipelago') + os.makedirs(home_path.cached_path, 0o700, exist_ok=True) else: # not implemented home_path.cached_path = local_path() # this will generate the same exceptions we got previously