geier / pycarddav

DEPRECATED - use vdirsyncer & khard -- easy to use CLI CardDAV client
http://lostpackets.de/pycarddav
MIT License
98 stars 35 forks source link

Use XDG_BaseDir spec #57

Closed WhyNotHugo closed 11 years ago

WhyNotHugo commented 11 years ago

The XDG basedir spec defines locations for application configuration files, data files, and cache (amongst others).

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

This separation allows (amongst others):

geier commented 11 years ago

XDG_CONFIG_HOME should already be supported, did you try it?

WhyNotHugo commented 11 years ago

It works. :+1:

However, a few details:

You might also want to use pyxdg or python-xdg instead of writing your own helper, just to keep the code simpler/smaller. :)

geier commented 11 years ago

thanks, I'll have a look at these!