$HOME/.config/ Directory Not Specified in FHS
dyek at real.com
Wed May 28 13:05:29 PDT 2008
The purpose or usage of $HOME/.config/ directory are specified in XDG
Basedir Spec., Desktop Menu Spec. Shared configuration system Spec., and
used by xdg-user-dirs utility. (See Resources below.)
It (~/.config/) is not included in the FHS spec. though.
The following discussion didn't appear to reach consensus and yield actions:
Is there enough information now to reach a consensus and specify a
directory in FHS (for application configuration storage, etc.)?
$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.
...If $XDG_CONFIG_HOME is not set, the default value of $HOME/.config
should be used for it.
This specification is expected to use the Base directory spec
<http://freedesktop.org/wiki/Specifications/basedir-spec> for the
location of configuration files (under *~/.config* by default).
(Is that supposed to be "~/.config/" directory? The "*...*" emphasis
marking is easily confused to be Shell Globbing and thus .config* files,
as opposed to .config/ directory.)
xdg-user-dirs is a tool to help manage "well known" user directories ...
...and sets up a config file in $(XDG_CONFIG_HOME)/user-dirs.dirs
(XDG_CONFIG_HOME defaults to ~/.config) that applications can read to
find these directories.
Example 1: If $XDG_CONFIG_HOME is "~/.config/"...
More information about the xdg