44
19
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?
3It's not in
/etc/profile
in Arch anymore, and is only once mentioned from/etc/profile.d/locale.sh
. – phil pirozhkov – 2014-09-21T08:47:49.6271Link is dead ... – ManuelSchneid3r – 2015-07-30T11:39:54.763
Link is dead, gist is unavailable, and Arch does not set it anymore: maybe because it makes no sense to set it to the default value. A cute kitten dies every time someone suggests so. – MestreLion – 2019-12-09T01:22:16.193
Gist is unavailable – hawk – 2013-11-22T12:32:35.123