Skip to content

Commit

Permalink
fix: fixed log path (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 19, 2023
1 parent def071e commit 6adeed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_core/dirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6adeed9

Please sign in to comment.