Adopt XDG base directories for ~/.aqomui #175
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/.aqomui predates the XDG base-directory spec. Its contents — server.json, protocol.json, profile.json, bypass_apps.json, last_server.json, firewall_temp.json, temp/ — are all app-managed state, none hand-edited config, so the honest home is $XDG_STATE_HOME/aqomui (/.local/state) rather than ~/.config; a config/data split for its own sake buys nothing.Portability: $XDG_STATE_HOME is in the spec since v0.8 (2021) and the spec defines the unset-or-empty fallback, so no library support is needed:
Mechanics: HOMEDIR and the per-file constants live in config.py since #173, so the move is one constant plus a migrate-if-old-dir-exists on first run. The service shares the convention through homedirs.json (it resolves users' .aqomui dirs), so the gui, cli and service change together — tangle with #174, whichever lands first.