XDG Base Directory Specification
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
The XDG Base Directory Specification, version 0.8 dated 8 May 2021, defines where applications should store user files through environment variables. Defaults are $HOME/.local/share for data, $HOME/.config for configuration, $HOME/.local/state for state and $HOME/.cache for cache. $XDG_RUNTIME_DIR must be user-owned with mode 0700, tied to login lifetime, and files need an access-time update every 6 hours or the sticky bit to avoid cleanup. The claim check found no independent sources, so these points rest on the specification text alone. For developers, it is the reference for placing app files predictably.