# XDG - Base Directory Specification XDG environment variables are not set by default on Debian, as per the XDG Base Directory Specification, which defines them as optional. If unset, applications fall back to default paths like $HOME/.config, $HOME/.local/share, and $HOME/.cache. To ensure XDG variables are set system-wide, define them in /etc/security/pam_env.conf using the DEFAULT syntax, which is reliably loaded during graphical login and session initialization: conf_print_xdg() { cat < | $XDG_CACHE_HOME or $HOME/.cache/ | $HOME/Library/Caches/ | | Project | config | XDG_CONFIG_HOME/ | $XDG_CONFIG_HOME or $HOME/.config/ | $HOME/Library/Preferences/ | | Project | data | XDG_CONFIG_HOME/ | $XDG_CONFIG_HOME or $HOME/.config/ | $HOME/Library/Application Support/ | | Project | dataLocal | XDG_DATA_HOME/ | $XDG_DATA_HOME or $HOME/.local/share/ | $HOME/Library/Application Support/ | | Project | preference | XDG_DATA_HOME/ | $XDG_DATA_HOME or $HOME/.local/share/ | $HOME/Library/Application Support/ | | Project | runtime | XDG_RUNTIME_DIR/ | $XDG_RUNTIME_DIR/ | null |