GNOME Bugzilla – Bug 596173
match FreeDesktop directories specs
Last modified: 2012-07-31 18:02:31 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
Bug #596171 could be seen as connected to this
Created attachment 191691 [details] [review] update to apply against 0.14.5
Would be nice to get this applied, for https://live.gnome.org/GnomeGoals/XDGConfigFolders
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?
Created attachment 220005 [details] [review] Migrate configuration data to XDG dirs.
Created attachment 220006 [details] [review] Search files in XDG directories instead of old config dirs.
Created attachment 220016 [details] [review] Migrate configuration data to XDG dirs.
Awesome stuff, Caolan and Luis. Luis, please push that to master.
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.