GNOME Bugzilla – Bug 579359
XDG directory spec conformance
Last modified: 2009-11-30 09:52:30 UTC
As this project is still young, I guess now is the time to propose to conform to this Freedesktop spec: http://standards.freedesktop.org/basedir-spec/latest/ Especially: http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html I first heard about the xdg desktop dirs thing through this post, which does a good job at explaining the issue/challenges that this spec addresses: http://ploum.frimouvy.org/?184-cleaning-user-preferences-keeping-user-data So, for example, we could store notes as $XDG_DATA_HOME/gnote/ (with its respective fallback, as described in the specs)
So far, what I can see, there is only User data in .gnote (What are the backup files? Are they as important as the "real" notes files?); that means the switch can be really easy, just relocate the gnote folder from .gnote to .local/share/gnote! Gnote is so early in its career that it should just switch. Applications not using the XDG spec annoy me as well, especially new ones. g_get_user_data_dir is the function to call to find out where to store user data. http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-get-user-data-dir
I still see this bug in version 0.5.2 in Ubuntu 9.10.
Additionally, this is affecting tomboyimportaddin, since it uses ~/.tomboy to pick up the notes. So the XDG-related changes should affect both the main code and Tomboy import add-in. Reporting against gnote-0.5.2
Created attachment 148630 [details] [review] Proposed fix
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.