Implement XDG Base Directory Specification

Bug #254397 reported by Duncan Hawthorne
4
Affects Status Importance Assigned to Milestone
Jokosher
Fix Released
Undecided
Laszlo Pandy

Bug Description

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

This standard should be implemented for jokosher, especially the $XDG_CONFIG_HOME spec. The config folder should be in the shell variable $XDG_CONFIG_HOME/jokosher or ~/.config/jokosher by default

simply (i think), this would mean going into the source file Globals.py and changing all the references of ~/.jokosher

Laszlo Pandy (laszlok)
Changed in jokosher:
assignee: nobody → laszlok2
milestone: none → 0.11
status: New → Confirmed
Revision history for this message
kenden (kenden) wrote :

Exaile just release a fix for this:
https://bugs.launchpad.net/exaile/+bug/152298
Since it is also a Gnome, python and gstreamer based application, maybe this can help?

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Thanks for the info kenden. I know the exaile developers, I will ask them about it.

Revision history for this message
Laszlo Pandy (laszlok) wrote :

Fairly simple change to all the paths in the code. Everything is now saved in the XDG_DATA_HOME and XDG_CONFIG_HOME. This is the main part of the spec, so i'm marking this as fixed.

The other part of the specification is when loading data or settings load from all the directories in XDG_DATA_DIRS and XDG_CONFIG_DIRS and if we find any conflicting information, the first path in the list take precedence. This would require loops around all code that loads data, and it has not been done yet.

Changed in jokosher:
status: Confirmed → Fix Committed
Revision history for this message
Laszlo Pandy (laszlok) wrote :

A new patch is pending merge which will copy all of the user's data from ~/.jokosher to the XDG location if the XDG location is empty. This is obviously the proper thing to do; the user won't notice that the paths have changed at all.

Laszlo Pandy (laszlok)
Changed in jokosher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.