Skip to content

Say where appconfig and the hash store keep their files - #238

Merged
abrignoni merged 1 commit into
mainfrom
docs/per-user-data-locations
Sep 30, 2026
Merged

abrignoni merged 1 commit into
mainfrom
docs/per-user-data-locations

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Two module docstrings named per-user folders the code does not use. Prose only, no behavior change.

  • gleapp/appconfig.py: said ~/.config/gleapp everywhere but Windows. config_dir() uses ~/Library/Application Support/GLEAPP on macOS and $XDG_CONFIG_HOME/GLEAPP (default ~/.config/GLEAPP) on Linux. Now also says what data_dir() holds and that it is %LOCALAPPDATA%\GLEAPP on Windows, and drops "window state", which nothing stores.
  • gleapp/hashstore.py: said the store lives under config_dir(). store_path() uses data_dir(), so on Windows it is %LOCALAPPDATA%, not %APPDATA%.

Checked by calling both functions for each platform under a scratch home. An AST comparison shows everything outside the two docstrings unchanged. The manual, in-app help and README already match.

🤖 Generated with Claude Code

The appconfig docstring gave ~/.config/gleapp for every platform other than
Windows and said it held window state, which nothing stores. config_dir() uses
~/Library/Application Support/GLEAPP on macOS and $XDG_CONFIG_HOME/GLEAPP
(default ~/.config/GLEAPP) on Linux, and data_dir(), which the docstring did
not mention, uses %LOCALAPPDATA%\GLEAPP on Windows.

The hashstore docstring put the store under config_dir(). store_path() uses
data_dir(), so on Windows the store is under %LOCALAPPDATA%, not %APPDATA%.

Docstrings only. The rest of both modules is identical to main by AST.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni enabled auto-merge September 30, 2026 18:54
@abrignoni
abrignoni merged commit fe3fce8 into main Sep 30, 2026
8 checks passed
@abrignoni
abrignoni deleted the docs/per-user-data-locations branch September 30, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant