On 2009/11/21 23:31, Stuart Henderson wrote:
> On 2009/11/22 00:08, Landry Breuil wrote:
> > On Sat, Nov 21, 2009 at 10:47:59PM +0000, Stuart Henderson wrote:
> > > On 2009/11/21 14:56, Benoit Lecocq wrote:
> > > > -...@sample ${SYSCONFDIR}/surfraw.bookmarks
> > > >  share/examples/surfraw/surfraw.conf
> > > > -...@sample ${SYSCONFDIR}/surfraw.conf
> > > > +...@sample ${SYSCONFDIR}/xdg/
> > > > +...@sample ${SYSCONFDIR}/xdg/surfraw/
> > > > +...@sample ${SYSCONFDIR}/xdg/surfraw/conf
> > > > +...@sample ${SYSCONFDIR}/xdg/surfraw/surfraw.bookmarks
> > > 
> > > I'm generally ok with updating this, but I don't see a good reason to move
> > > the config files, especially to somewhere non-intuitive like /etc/xdg..
> > 
> > etc/xdg is the standard freedesktop.org config file subdir.. grep for it
> > in xfce/gnome PLISTs :)
> 
> hmm. according to the spec, /etc/xdg/packagename is for _default_ config files
> (like we put in /usr/local/share/examples) and user-edited configs are still
> meant to be in /etc/packagename.

from http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html;


 "Specifications may reference this specification by specifying the
location of a configuration file as $XDG_CONFIG_DIRS/subdir/filename.
This implies that:

    * Default configuration files should be installed to
$sysconfdir/xdg/subdir/filename with $sysconfdir defaulting to /etc.
    * A user specific version of the configuration file may be created
in $XDG_CONFIG_HOME/subdir/filename, taking into account the default
value for $XDG_CONFIG_HOME if $XDG_CONFIG_HOME is not set.
    * Lookups of the configuration file should search for
./subdir/filename relative to all base directories indicated by
$XDG_CONFIG_HOME and $XDG_CONFIG_DIRS . If an environment variable is
either not set or empty, its default value as defined by this
specification should be used instead."

Reply via email to