User:Kynikos/XDG Base Directory support
Variable definitions
Of the variables required by the specification, only XDG_RUNTIME_DIR is set by default on an Arch system. It is up to the user to define the others (see FS#31204 and [1]), ensuring to use valid, absolute paths:
XDG_CONFIG_HOME
- Where user-specific configurations should be written (analogous to
/etc
). - Should default to
"$HOME"/.config
.
- Where user-specific configurations should be written (analogous to
XDG_CACHE_HOME
- Where user-specific non-essential (cached) data should be written (analogous to
/var/cache
). - Should default to
"$HOME"/.cache
.
- Where user-specific non-essential (cached) data should be written (analogous to
XDG_DATA_HOME
- Where user-specific data files should be written (analogous to
/usr/share
). - Should default to
"$HOME"/.local/share
.
- Where user-specific data files should be written (analogous to
XDG_DATA_DIRS
- List of directories seperated by
:
(analogous toPATH
). - Should default to
/usr/local/share:/usr/share
.
- List of directories seperated by
XDG_CONFIG_DIRS
- List of directories seperated by
:
(analogous toPATH
). - Should default to
/etc/xdg
.
- List of directories seperated by