Use XDG location scheme
Currently LottaNZB's default download directory is set to ~/Downloads, but the XDG Base Directory Specification already specifies that the default download directory (which is likely to be localized) can be determined using the XDG_DOWNLOAD_DIR variable that is part of ~/.config/
I guess it's better to adhere to this standards late than never. We will not change the download directory for existing LottaNZB users but the configuration directory should be moved to the new location if it doesn't already exist there.
There are Python bindings called python-xdg that provide a convenient way of determining these directories. We don't really need to add this package as a dependency, since we only need one of it's module, which is fortunately very small and can easily be bundled with LottaNZB.
Blueprint information
Related branches
Related bugs
Bug #261221: LottaNZB shoud use XDG-location scheme | Fix Released |
Bug #341069: LottaNZB 0.4 cannot load newer configuration files | Fix Released |
Sprints
Whiteboard
Implementing this blueprint will also fix bug #341069, because if LottaNZB 0.5 moves the configuration from ~/.lottanzb to ~/.config/lottanzb, instances of LottaNZB 0.4 launched at a later point of time will never need to load LottaNZB 0.5 configuration data.