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 522817 - GNOME Dictionary doesn't match FreeDesktop directories specs
GNOME Dictionary doesn't match FreeDesktop directories specs
Status: RESOLVED DUPLICATE of bug 659104
Product: gnome-dictionary
Classification: Core
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: gnome-dictionary-maint
gnome-dictionary-maint
Depends on:
Blocks: 523057
 
 
Reported: 2008-03-16 19:24 UTC by antistress
Modified: 2012-02-23 15:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Patch for gnome-dictionary to use an XDG compliant directory (406 bytes, patch)
2011-03-19 16:15 UTC, Robert Roth
none Details | Review

Description antistress 2008-03-16 19:24:37 UTC
Please describe the problem:
I've found that GNOME Dictionnary 2.20 in GNOME 2.22 (Ubuntu Hardy alpha 6) places its files in .gnome2/gnome-dictionary/
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:
Comment 1 Emmanuele Bassi (:ebassi) 2008-08-10 19:59:06 UTC
the data is application specific and not meant to be shared at all, since the format might or might not change without any notice.

not that I don't agree: we should probably move to XDG_CONFIG_HOME in the future and I'd gladly accept patches for that.
Comment 2 Robert Roth 2011-03-19 16:15:47 UTC
Created attachment 183790 [details] [review]
Patch for gnome-dictionary to use an XDG compliant directory

The patch changes the old $HOME/.gnome/gnome-dictionary path to the XDG-compliant $XDG_USER_CONFIG_DIR/gnome_dictionary.
Comment 3 Antono Vasiljev 2012-01-04 12:42:00 UTC
Sorry for creating new bug for this: 
https://bugzilla.gnome.org/show_bug.cgi?id=659104

I've implemented patch with migration of configs from

~/.gnome2/gnome-dictionary to ~/.config/gnome-dictionary

I'ts here: https://bugzilla.gnome.org/attachment.cgi?id=204562

Emmanuele, could you please review?
Comment 4 Sebastian 2012-02-11 21:49:37 UTC
I think the general structure of the patch is good.

Two suggestions:

1. The patch should not include whitespace changes, you can provide a separate patch for that (this also makes it easiert to review the patch)

2. Using of goto is discouraged, i would suggest not to use goto lables
Comment 5 Sebastian 2012-02-11 21:50:31 UTC
Please change the bug status to confirmed or in progress
Comment 6 Antono Vasiljev 2012-02-12 23:24:56 UTC
I think this bug is duplicate of:

https://bugzilla.gnome.org/show_bug.cgi?id=659104

That bug has reviewed patch.
Emmanuele promised to commit it before next version bump or something like that.
Comment 7 Javier Jardón (IRC: jjardon) 2012-02-23 15:17:20 UTC

*** This bug has been marked as a duplicate of bug 659104 ***