GNOME Bugzilla – Bug 522813
Deskbar Applet doesn't match FreeDesktop directories specs
Last modified: 2008-07-11 19:23:21 UTC
Please describe the problem: I found that Deskbar Applet for GNOME 2.22 (Ubuntu Hardy alpha 6) places its files in .gnome2/deskbar-applet/ which doesn't match FreeDesktop directories specs : The default for $XDG_CONFIG_HOME is $HOME/.config, the default for $XDG_DATA_HOME is $HOME/.local/share. So all applications should look for those environment variables and use those default values if the variables are not set. See http://www.freedesktop.org/wiki/Specifications/basedir-spec See also - http://ploum.frimouvy.org/?184-cleaning-user-preferences-keeping-user-data (main post and comment#8) - http://www.aigarius.com/blog/2007/01/10/fhs-extension-for-user-home-folders/ Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Marking as gnome-love, because that should be a very easy task.
Alternatively you could use the xdg.BaseDirectory python module (requires pyxdg) to get these locations.
2008-07-11 Sebastian Pölsterl <sebp@cvs.gnome.org> * deskbar/core/BrowserMatch.py: * deskbar/__init__.py: Place user's modules in $XDG_DATA_HOME/deskbar-applet/modules-2.20-compatible and history file together with modules' configuration data into $XDG_CONFIG_HOME/deskbar-applet When on of the directories doesn't exist and the old location ~/.gnome2/deskbar-applet still does the files are copied to the new locations. Fixes bug #522813