From af0714132d987d8ffbb77536749f050828ecb429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 9 Nov 2023 16:37:58 +0100 Subject: [PATCH] clan: use .local/share as default for XDG_DATA_HOME --- pkgs/clan-cli/clan_cli/dirs.py | 2 +- pkgs/clan-cli/tests/fixtures_flakes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/dirs.py b/pkgs/clan-cli/clan_cli/dirs.py index a07248a0b..172d29c78 100644 --- a/pkgs/clan-cli/clan_cli/dirs.py +++ b/pkgs/clan-cli/clan_cli/dirs.py @@ -48,7 +48,7 @@ def user_data_dir() -> Path: elif sys.platform == "darwin": return Path(os.path.expanduser("~/Library/Application Support/")) else: - return Path(os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/state"))) + return Path(os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share"))) def clan_data_dir() -> Path: diff --git a/pkgs/clan-cli/tests/fixtures_flakes.py b/pkgs/clan-cli/tests/fixtures_flakes.py index 80a4dab8b..cc0ce0738 100644 --- a/pkgs/clan-cli/tests/fixtures_flakes.py +++ b/pkgs/clan-cli/tests/fixtures_flakes.py @@ -55,7 +55,7 @@ def create_flake( template = Path(__file__).parent / flake_name # copy the template to a new temporary location - flake = temporary_home / ".local/state/clan/flake" / flake_name + flake = temporary_home / ".local/share/clan/flake" / flake_name shutil.copytree(template, flake) # lookup the requested machines in ./test_machines and include them