<div class="gmail_quote">On Thu Nov 27 2014 at 8:09:42 PM Markus Raab <<a href="mailto:elektra@markus-raab.org">elektra@markus-raab.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">s to be a bug in the standard. The specification states:<br>
"If, when attempting to write a file, the destination directory is non-existant<br>
an attempt should be made to create it with permission 0700."<br></blockquote><div><br></div><div>It also states:</div><div>"<code class="literal">$XDG_CONFIG_DIRS</code> defines the preference-ordered set of
base directories to search for configuration files in addition to the
<code class="literal">$XDG_CONFIG_HOME</code> base directory."</div><div><br></div><div> 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.</div></div>