[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: XDG Base Directory Specification support?

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 20 Apr 2012 14:11:11 +0100

Daniel Shahaf <danielsh_at_elego.de> writes:

> Wolfram Nyaa~ wrote on Fri, Apr 20, 2012 at 14:05:17 +0700:
>> I think that the following sequence should be used:
>> 1) /etc/subversion
>> 2) --config-dir (if set)
>> 3) $XDG_CONFIG_HOME/subversion (if XDG_CONFIG_HOME set and not empty)
>> 4) $HOME/.subversion
>
> Not quite; --config-dir overrides/replaces $HOME/.subversion/. (This is
> how it works today, and I don't see why introducing $XDG_* support
> should change that part of the semantics.)

Looking at the spec there is $XDG_CONFIG_DIRS, a colon separated list,
that should fall back to /etc/xdg if $XDG_CONFIG_DIRS is not set. Then
there is $XDG_CONFIG_HOME that should fall back to $HOME/.config if not
set.

So the system locations are:

   - $XDG_CONFIG_DIRS/subversion or /etc/xdg/subversion

   - /etc/subversion

The user locations are:

   - $XDG_CONFIG_HOME/subversion or $HOME/.config/subversion

   - $HOME/.subversion

And the command-line is:

   - --config-dir if set

I assume the existing system/user/command-line rules remain unchanged.
What would change is how we locate the system and user dirs. I suppose
we look for the XDG version first, and if not found fall back on the
current location.

-- 
Philip
Received on 2012-04-20 15:11:50 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.