GNOME Bugzilla – Bug 631427
[patch]meld don't match XDG standards.
Last modified: 2010-10-19 20:01:59 UTC
Created attachment 171769 [details] meld xdg patch I found that meld places its config file in ~/.meld/ if not using gnome-python. 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/ python itself has pyxdg to support this. if don't wan't to depend on pyxdg, it's also simple to do pyxdg's work. here is a workable patch.
Actually, it's even easier than this. We don't need to check for the existence of the environment variable; we can just use glib.get_user_config_dir() to get an XDG-compliant directory. I'd accept a patch that did this, but it would also need to check the existing location (i.e., ~/.meld/meldrc.ini) for an existing config file and provide a one-way import.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.