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 583210 - use XDG_CACHE_HOME to store window, panel state,etc
use XDG_CACHE_HOME to store window, panel state,etc
Status: RESOLVED FIXED
Product: vinagre
Classification: Applications
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: vinagre-maint
vinagre-maint
Depends on:
Blocks: 523057
 
 
Reported: 2009-05-19 13:11 UTC by Jonh Wendell
Modified: 2010-01-29 17:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonh Wendell 2009-05-19 13:11:37 UTC
instead of using gconf.

http://mail.gnome.org/archives/desktop-devel-list/2006-August/msg00145.html
Comment 2 Christian Persch 2010-01-29 16:29:02 UTC
+save_file (void)
+{
+ GError *error = NULL;
+ gchar *data = g_key_file_to_data (keyfile, NULL, NULL);
+ gchar *dir = g_build_filename (g_get_user_cache_dir (), "vinagre", NULL);
+
+ g_mkdir_with_parents (dir, 0775);

The XDG spec says that you should use 0700 here. (At least for the g_get_cache_dir() parent dir, which may not yet exist.)
Comment 3 Jonh Wendell 2010-01-29 17:06:15 UTC
Fixed, thanks for the tip.