XDG Base Directory Specification for the configuration directory on linux

Registered by Bernd Schlapsi on 2008-11-19

Could wxBanker please follow the XDG Base Directory Specification for the configuration/data directory on linux

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

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.6
Started by
Michael Rooney on 2009-08-12
Completed by
Michael Rooney on 2009-08-12

Sprints

Whiteboard

2008.11.20 michael: Thanks for this spec! Right now wxBanker stores the database as ~/.wxbanker/bank.db on Unix systems, but I will check this out to see how this can be improved, while still having sane behavior for Windows/OSX. This sounds like a reasonable target for wxBanker 0.5, I'll mark it as such. As usual, if anyone is inclined, patches very welcome :) The place to patch this would probably be in wxbanker.py's main() method, approximately lines 174-186.

2008.11.21 bernd: In my opinion there is not only the database, which should be stored in ~/.config/wxbanker/. There is also the .wxBanker config file, which should be stored in that location (wxbanker.py - line 163). And of course you are right - the settings location should be respect Windows/OSX installation.

2009.01.21 kolmis: consider using pyxdg - http://www.freedesktop.org/wiki/Software/pyxdg - it is packaged in debian/ubuntu (python-xdg) and is a dependancy of popular packages like totem, deluge etc.

2009.02.27 mrooney: I am going to un-target for 0.5, as I'd like to release it soon and don't plan on having any time for this. If anyone else wants to give it a shot though, I'll happily integrate a patch/branch!

2009.08.11 mrooney: Okay, thanks to the branch from kolmis XDG is implemented in trunk for 0.6 including migrating files to the XDG dirs and still having the previous behavior on Windows and OSX (except that now on Unix without XDG (such as OSX) the wxBanker cfg file will also be in ~/.wxbanker, so a little cleaner in that case too)

2009.08.21 kolmis: michael, thanks for merging. i had started to work on this, but abandoned it soon after, am not sure if there was anything valuable to be merged ... :)

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.