GNOME Bugzilla – Bug 517717
Use g_get_user_config_dir
Last modified: 2008-03-25 15:09:35 UTC
We should use g_get_user_config_dir instead of hardcoding the directory in totem_dot_dir in totem-uri.c. See http://uwstopia.nl/blog/2008/02/hardcoded-configuration-path Should we implement a fallback to check the old directory if the new one isn't found?
It's fine just to replace it, but it's also used for the browser-plugin, so the docs would need to be updated.
Created attachment 105727 [details] [review] Use g_get_user_config_dir()
2008-02-21 Philip Withnall <pwithnall@svn.gnome.org> * browser-plugin/README.browser-plugin: * browser-plugin/totemPluginGlue.cpp: * src/backend/bacon-video-widget-xine.c: (setup_config), (bacon_video_widget_unrealize): * src/totem-uri.c: (totem_dot_dir): Change to use g_get_user_config_dir() instead of hardcoding the config directory. This breaks old configurations, which were in ~/.gnome2/Totem --- they're now in ~/.config/totem/, and use the XDG base directory spec. (Closes: #517717)
(In reply to comment #3) > directory. This breaks old configurations, which were > in ~/.gnome2/Totem --- they're now in ~/.config/totem/, Why are existing settings not migrated ?
I believe it's because we basically only stored geometry settings there, which are no great loss. Bastien?
I don't see a big need to do it, as long as it's documented.