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 596173 - match FreeDesktop directories specs
match FreeDesktop directories specs
Status: RESOLVED FIXED
Product: planner
Classification: Other
Component: General
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: planner-maint
planner-maint
Depends on:
Blocks: 523057
 
 
Reported: 2009-09-24 10:56 UTC by Caolan McNamara
Modified: 2012-07-31 18:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use XDG directories. (5.27 KB, patch)
2009-09-24 10:56 UTC, Caolan McNamara
none Details | Review
update to apply against 0.14.5 (5.49 KB, patch)
2011-07-11 10:18 UTC, Caolan McNamara
none Details | Review
Migrate configuration data to XDG dirs. (1.94 KB, patch)
2012-07-31 17:15 UTC, Luis Menina
none Details | Review
Search files in XDG directories instead of old config dirs. (5.45 KB, patch)
2012-07-31 17:22 UTC, Luis Menina
committed Details | Review
Migrate configuration data to XDG dirs. (1.95 KB, patch)
2012-07-31 17:58 UTC, Luis Menina
committed Details | Review

Description Caolan McNamara 2009-09-24 10:56:21 UTC
Created attachment 143901 [details] [review]
Use XDG directories.

As per http://live.gnome.org/GnomeGoals/XDGConfigFolders here's my cut at this
for planner.

a) The only settings planner seems to write are the print options which can go
into g_get_user_config_dir/planner/ as config data. If that doesn't exist when
trying to read them, then try the old ~/.gnome2/planner/ dir so as to retain
old settings

b) Search for user-written python scripts in g_get_user_data_dir/planner/python
first, but also search for the old ~/.gnome2/planner/python as well to continue
to read old scripts if there were any

c) While we're at it we can default the file picker to g_get_user_special_dir
(G_USER_DIRECTORY_DOCUMENTS) instead of the home dir
Comment 1 Caolan McNamara 2009-09-24 10:59:47 UTC
Bug #596171 could be seen as connected to this
Comment 2 Caolan McNamara 2011-07-11 10:18:35 UTC
Created attachment 191691 [details] [review]
update to apply against 0.14.5
Comment 3 Matthias Clasen 2012-06-26 17:55:50 UTC
Would be nice to get this applied, for https://live.gnome.org/GnomeGoals/XDGConfigFolders
Comment 4 Alexandre Franke 2012-06-26 20:53:38 UTC
The way I understand this code, it reads config files in XDG folder if it's available and at the old location otherwise. If no config is available it all, it'll use XDG folder.

I don't think this code migrates configuration from the old location to XDG folder, which should be done.

Am I right?
Comment 5 Luis Menina 2012-07-31 17:15:48 UTC
Created attachment 220005 [details] [review]
Migrate configuration data to XDG dirs.
Comment 6 Luis Menina 2012-07-31 17:22:25 UTC
Created attachment 220006 [details] [review]
Search files in XDG directories instead of old config dirs.
Comment 7 Luis Menina 2012-07-31 17:58:09 UTC
Created attachment 220016 [details] [review]
Migrate configuration data to XDG dirs.
Comment 8 Alexandre Franke 2012-07-31 18:00:25 UTC
Awesome stuff, Caolan and Luis. Luis, please push that to master.
Comment 9 Luis Menina 2012-07-31 18:02:25 UTC
Attachment 220006 [details] pushed as 4399765 - Search files in XDG directories instead of old config dirs.
Attachment 220016 [details] pushed as d3b14d4 - Migrate configuration data to XDG dirs.