darcs patch: XDG_CONFIG_HOME support

Tue May 27 14:59:48 CEST 2008 syljo361@gmail.com * XDG_CONFIG_HOME support

sjanssen:
On Tue, May 27, 2008 at 10:59:12AM -0700, Sylvester Johansson wrote:
Tue May 27 14:59:48 CEST 2008 syljo361@gmail.com * XDG_CONFIG_HOME support
What is the advantage of this over the standard HOME?
Ah, I had to look this up, http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html $XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used. So not quite the same as $HOME -- Don

On 2008 May 27, at 19:16, Don Stewart wrote:
sjanssen:
On Tue, May 27, 2008 at 10:59:12AM -0700, Sylvester Johansson wrote:
Tue May 27 14:59:48 CEST 2008 syljo361@gmail.com * XDG_CONFIG_HOME support
What is the advantage of this over the standard HOME?
Ah, I had to look this up,
http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
So not quite the same as $HOME
I think the idea is for folks like me who have networked home directories to be able to specify a non-shared (or at least only used by one machine) config directory; KDE and GNOME both have the idea that they have exclusive access to their files and become very unhappy if multiple machines use their configs. (So does Mozilla/Firefox, for that matter.) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

On Tue, May 27, 2008 at 07:20:50PM -0400, Brandon S. Allbery KF8NH wrote:
I think the idea is for folks like me who have networked home directories to be able to specify a non-shared (or at least only used by one machine) config directory; KDE and GNOME both have the idea that they have exclusive access to their files and become very unhappy if multiple machines use their configs. (So does Mozilla/Firefox, for that matter.)
A problem xmonad solved by appending the arch to the binary name. This has one disadvantage I can think of: for DEs that set $XDG automatically, users will have to know about it in order to know where to put their .xmonad.hs -- otherwise the file won't be detected. Perhaps that's not worth worrying about. It seems the only advantage is cleaning up the home directory.

It's a freedesktop.org standard that we should support... it doesn't hurt us and it will potentially help that standard become exponentially more popular (e.g. even my shell, "fish", uses it, and it appears that gtk+ and compiz use it, and several other things I have installed, and XFCE uses it...). Right now I have $HOME as a subdirectory of what is morally my home directory in order to keep the config files etc. together, like I keep my other stuff together in directories. Which does indeed have the potential to help mounting/networking. -Isaac
participants (6)
-
Brandon S. Allbery KF8NH
-
Devin Mullins
-
Don Stewart
-
Isaac Dupree
-
Spencer Janssen
-
Sylvester Johansson