The XDG specification talks about the XDG_CONFIG_HOME
variable, but does not specify where it should be defined. Should we define it in /etc/X11/Xsession
, or is it the window manager's config file that needs to define this?
I tried declaring it in /etc/environment as
XDG_CONFIG_HOME="$HOME/.config"
but that didn't work, as it seems that $HOME is not defined when /etc/environment
is parsed.
The only documentation I could find online was for Gentoo, where it was declared in /etc/env.d/90xsession
I'm using Ubuntu. What would be the general solution for Debian based distros?