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 paths everywhere #61

Closed mathstuf closed 11 years ago

mathstuf commented 11 years ago

Should address Issue #57.

mathstuf commented 11 years ago

Check out the dev/4.2-dev/xdg branch. Working on dev/develop/xdg now. (Can't seem to make a pull request to a separate branch without a mouse…link labelling isn't working on the branch dropdown).

geier commented 11 years ago

@mathstuf as I already wrote in a comment to the commit (I don't know if you saw it), this doesn't really work for me as it is: it keeps creating ~/.local/share/pycard/abook.db/ on my machine and than fails when trying to create a database at ~/.local/share/pycard/abook.db (no slash)

so perhaps xdg.BaseDirectory.save_data_path('pycard') + 'abook.db' would be better

geier commented 11 years ago

pulled as of commits 5f397f43 (4.2-dev) and 14673c44e8 (develop)