User:Kynikos/XDG Base Directory support

From ArchWiki
Jump to: navigation, search

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.
  • XDG_CACHE_HOME
    • Where user-specific non-essential (cached) data should be written (analogous to /var/cache).
    • Should default to "$HOME"/.cache.
  • XDG_DATA_HOME
    • Where user-specific data files should be written (analogous to /usr/share).
    • Should default to "$HOME"/.local/share.
  • XDG_DATA_DIRS
    • List of directories seperated by : (analogous to PATH).
    • Should default to /usr/local/share:/usr/share.
  • XDG_CONFIG_DIRS
    • List of directories seperated by : (analogous to PATH).
    • Should default to /etc/xdg.