[glib] Update to use XDG cache home for thumbnails



commit ee19ddcb1423814edc76aa03dd3c2252e9f722b4
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Apr 30 12:51:25 2012 -0400

    Update to use XDG cache home for thumbnails
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675168

 gio/glocalfileinfo.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 583d962..2c52249 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1292,8 +1292,8 @@ get_thumbnail_attributes (const char *path,
   basename = g_strconcat (g_checksum_get_string (checksum), ".png", NULL);
   g_checksum_free (checksum);
 
-  filename = g_build_filename (g_get_home_dir (),
-                               ".thumbnails", "normal", basename,
+  filename = g_build_filename (g_get_user_cache_dir (),
+                               "thumbnails", "normal", basename,
                                NULL);
 
   if (g_file_test (filename, G_FILE_TEST_IS_REGULAR))
@@ -1301,8 +1301,8 @@ get_thumbnail_attributes (const char *path,
   else
     {
       g_free (filename);
-      filename = g_build_filename (g_get_home_dir (),
-                                   ".thumbnails", "fail",
+      filename = g_build_filename (g_get_user_cache_dir (),
+                                   "thumbnails", "fail",
                                    "gnome-thumbnail-factory",
                                    basename,
                                    NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]