Python pyxdg

From wikinotes
Revision as of 23:01, 20 September 2020 by Will (talk | contribs) (→‎Locations)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The XDG (X Desktop Group) Base Directory specification establishes
conventions of where program data gets stored on linux.

Documentation

official docs https://pyxdg.readthedocs.io/en/latest/index.html
XDG Base Directory Spec https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
homepage https://www.freedesktop.org/wiki/Software/pyxdg/

Locations

~/.config/{program}/ $XDG_CONFIG_HOME/{program}
~/.local/share/{program} $XDG_DATA_HOME/{program}
~/.cache/{program} $XDG_CACHE_HOME/{program}

Usage