[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: Wolfram Nyaa~ <wolfram_at_ritsuka.org>
Date: Fri, 20 Apr 2012 14:05:17 +0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20.04.2012 1:35, Daniel Shahaf wrote:
> Wolfram Nyaa~ wrote on Fri, Apr 20, 2012 at 00:32:40 +0700:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> On 04/19/2012 11:32 PM, Daniel Shahaf wrote:
>>> For what configuration and what data? Client config? Server
>>> config? Working copies? Repositories?
>> Any data from ~/.subversion. Client config as far as I know.
> Does that entail anything beyond changing
No, I think

> the default lookup order of config from: /etc/subversion,
> $HOME/.subversion (as modified by --config-dir) to some other
> sequence of directories, obtained from $XDG_* envvars?
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

> Is it safe to use those envvars whenever they are set?
According to FDO specification,

>> If an environment variable is either not set or empty, its
>> default
value as defined by this specification should be used instead.

and

>> $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.

Look at this page:
http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

> Is it possible for them to be set but for the user not to want
> them used to find config files?
In such case user should redefine or clear them I think

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPkQqsAAoJEN9tENx5d7sADKIIAIm5rfA1pQq4QOrhHKEKBsc3
fIaL8IXIm/RWSyH4SDmyMQcDq24a8WZfRWyWUe3fMAgOlSIjEdUyU/afycE8l32p
G77X7gBOf2juwZZ9QWAIPr8abgGcUS4R7frV0NbbkAnjIiMwSPjP/1//+/TFqQIE
2QwYYp1FUEvwQHHxecRYOwLC8NncEBuRzkY8LgYl3kIeTx+o4Jqkvt4nWVq4IhzK
y2ksuh+uxPaF5dNB2vXC0obutG3oBa62kloxXbKvM4PN3+Eg1UygSLWQnJqk6Jl5
FNZfqrpr2Lj0kKEMGmhF1Fhd89SUKS1Zeg6TUVGgORHxl3/ag4PIUsxT+zzzDg8=
=4CW0
-----END PGP SIGNATURE-----

Received on 2012-04-20 09:05:55 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.