From 6adeed9873a1c71dd9ab5e81be1aa57f5f88b003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 19 Oct 2023 15:53:39 +0200 Subject: [PATCH] fix: fixed log path (again) --- aw_core/dirs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aw_core/dirs.py b/aw_core/dirs.py index a700d801..1352263d 100644 --- a/aw_core/dirs.py +++ b/aw_core/dirs.py @@ -47,7 +47,7 @@ def get_log_dir(module_name: Optional[str] = None) -> str: # pragma: no cover # we want to keep using XDG_DATA_HOME for backwards compatibility # https://github.com/ActivityWatch/aw-core/pull/122#issuecomment-1768020335 if sys.platform.startswith("linux"): - log_dir = platformdirs.user_data_path("activitywatch") / "log" + log_dir = platformdirs.user_cache_path("activitywatch") / "log" else: log_dir = platformdirs.user_log_dir("activitywatch") return os.path.join(log_dir, module_name) if module_name else log_dir