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