From charlesreid1

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

Summary:

The XDG Base Directory Specification is based on the following concepts:

  • user-specific data files should be written to location specified by environment variable $XDG_DATA_HOM
  • user-specific configuration files should be written to location specified by $XDG_CONFIG_HOME.
  • ordered base directories relative to which data files should be searched is location specified by $XDG_DATA_DIRS.
  • ordered base directories relative to which configuration files should be searched should be written to location specified by $XDG_CONFIG_DIRS.
  • user-specific non-essential (cached) data should be written to location specified by $XDG_CACHE_HOME.
  • user-specific runtime files and other file objects should be placed in location specified by $XDG_RUNTIME_DIR.