On 12-04-12 at 02:50pm, Martin Stigge wrote:
> Got your mail 4 times, weird.
> 
> On Thu, 2012-04-12 at 13:03 +0200, Guillaume Ayoub wrote:
> > > * For the file-store path patch, I see what you are getting at, 
> > > however, my focus is on radicale as a system daemon. If you go 
> > > forward with mimicking XDG_DATA_HOME, I'd suggest 
> > > ~/.local/share/radicale/collections instead of the 
> > > ~/.local/shared/Radicale/collections you wrote. The user would 
> > > need a migration path though, similar to what I wrote into the 
> > > NEWS file.
> > 
> > Using ~/.local instead of ~/.config is a much better choice, and I 
> > really should use that in the default configuration file. Using the 
> > real XDG_DATA_HOME environment variable is an even better solution, 
> > isn't it?
> 
> There is also the package python-xdg for that.

This is the note I put in our Debian packaging currently:

> FIXME: Create $HOME initially, ensure it exists at daemon start, patch 
> default file-store path to be ~/.local/shared/Radicale/collections (to 
> mimic XDG_DATA_HOME), and suggest to upstream to use python-xdg.

So I agree that respecting XDG_DATA_HOME is better than hardcoding 
either ~/.config or ~/.local, and I agree that python-xdg is one 
sensible approach.  But I also recognize that you try avoid library 
dependencies as much possible, which is my reason for _suggesing_ rather 
than recommending python-xdg :-)

What might work is to have Radicale default to using XDG_DATA_HOME and 
if that is empty then fallback to e.g. ~/.local .  But I don't know XDG 
standard in depth (I am the kind of person who _loves_ libraries so that 
I need not know all details myself).


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: Digital signature

Reply via email to