After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 579359 - XDG directory spec conformance
XDG directory spec conformance
Status: RESOLVED FIXED
Product: gnote
Classification: Applications
Component: main
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gnote-maint
gnote-maint
Depends on:
Blocks: 523057
 
 
Reported: 2009-04-17 23:17 UTC by Jean-François Fortin Tam
Modified: 2009-11-30 09:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (15.14 KB, patch)
2009-11-28 01:46 UTC, Debarshi Ray
none Details | Review

Description Jean-François Fortin Tam 2009-04-17 23:17:37 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)
Comment 1 ulrik sverdrup 2009-07-14 09:11:14 UTC
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
Comment 2 Mihai Capotă 2009-10-27 14:23:45 UTC
I still see this bug in version 0.5.2 in Ubuntu 9.10.
Comment 3 Roman Yepishev 2009-11-18 16:15:25 UTC
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
Comment 4 Debarshi Ray 2009-11-28 01:46:11 UTC
Created attachment 148630 [details] [review]
Proposed fix
Comment 5 Debarshi Ray 2009-11-30 09:52:30 UTC
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.