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

Clint Adams wrote:
>On Mon, Mar 23, 2009 at 10:20:11PM -0400, Peter Husen wrote:
>> There is an ongoing effort (and an XDG specification) to clean out the
>> dot-files and -directories from the home directory. See e.g.
>> http://ploum.frimouvy.org/?207-modify-your-application-to-use-xdg-folders
>
>The spec isn't clear to me.  It would suggest that the selected editor
>file be named $HOME/.config/....what?

The relative filename is up to you; sensible-editor.conf or
sensible-utils/editor would be reasonable, for instance. The important thing
is that it's written to $XDG_CONFIG_HOME (or $HOME/.config if that's unset),
and read from $XDG_CONFIG_HOME (defaulting to $HOME/.config if unset) if it
exists there. If it isn't in $XDG_CONFIG_HOME, $XDG_CONFIG_DIRS is a search
path like $PATH, defaulting to /etc/xdg if not set.

So if $XDG_CONFIG_HOME is unset, $HOME is "/home/me", $XDG_CONFIG_DIRS is
"/home/me/etc:/etc/xdg" and you chose to use sensible-editor.conf, you'd look
in:

/home/me/.config/sensible-editor.conf
/home/me/etc/sensible-editor.conf
/etc/xdg/sensible-editor.conf

http://standards.freedesktop.org/basedir-spec/latest/ar01s04.html explains this
in more detail. The choice of filename isn't really explained there because
it's assumed to be defined by another specification (e.g. Telepathy's API
specifies that it uses $XDG_DATA_DIRS/telepathy/managers/*.manager) - for
situations like this where you're not trying to interoperate with anyone else,
just choose a relative filename or directory the same way you'd choose a
dotfile or dot-directory name, but don't make it hidden.

Hope this helps,
    Simon
-----BEGIN PGP SIGNATURE-----

iD8DBQFJzL87WSc8zVUw7HYRAub3AKCbhjwBWhkuvR3dkgvdZsr8/B6/HQCgyj1F
zI+MbiTSAlyV6Gqhjb0FwoQ=
=QhD1
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to