Bug in XDG Base Directory Specification

Florian Müllner fmuellner at gnome.org
Thu Nov 27 12:30:36 PST 2014


On Thu Nov 27 2014 at 8:09:42 PM Markus Raab <elektra at markus-raab.org>
wrote:

> s to be a bug in the standard. The specification states:
> "If, when attempting to write a file, the destination directory is
> non-existant
> an attempt should be made to create it with permission 0700."
>

It also states:
"$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to
search for configuration files in addition to the $XDG_CONFIG_HOME base
directory."

 So $XDG_CONFIG_HOME should always take precedence over any directory
defined in $XDG_CONFIG_DIRS, using the default $HOME/.config location if
the variable is undefined. A tool like kdb should read defaults from
$XDG_CONFIG_DIRS, but never write anything there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20141127/c28c51f3/attachment.html>


More information about the xdg mailing list