fix(config): honor XDG directory overrides - #119
abouchard11 wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Checking in on this one — anything you need from me to move it along? |
|
Thanks, but platformdirs already honors XDG_* on Linux, and on macOS/Windows the server (aw-server-rust via the |
Local ActivityWatch server API keys were not discovered when XDG directory overrides were set on platforms where platformdirs ignores those variables. This prevented authenticated requests from using the configured local server key.
The config directory helpers now honor XDG_DATA_HOME, XDG_CONFIG_HOME, and XDG_CACHE_HOME when set, while preserving platformdirs behavior otherwise. This also keeps local auth lookup consistent with the test and runtime directory layout.
Tests:
python -m pytest tests/test_auth.py tests/test_profile_config.py -q(21 passed)