XDG Base Directory

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

The XDG Base Directory spec determines where to store files in linux.

  • config files
  • cache files
  • data files

Documentation

official docs https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Locations

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