[gnome-settings-daemon] Support new XDG thumbnail directory locations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] Support new XDG thumbnail directory locations
- Date: Thu, 14 Jun 2012 04:10:05 +0000 (UTC)
commit 6244a2acb9fbff20ec94b1cc4cb36b7cb50ff2a5
Author: William Jon McCann <jmccann redhat com>
Date: Mon Apr 30 12:49:04 2012 -0400
Support new XDG thumbnail directory locations
https://bugzilla.gnome.org/show_bug.cgi?id=675166
plugins/housekeeping/gsd-housekeeping-manager.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-housekeeping-manager.c b/plugins/housekeeping/gsd-housekeeping-manager.c
index f6686d0..84f6312 100644
--- a/plugins/housekeeping/gsd-housekeeping-manager.c
+++ b/plugins/housekeeping/gsd-housekeeping-manager.c
@@ -155,6 +155,27 @@ get_thumbnail_dirs (void)
array = g_ptr_array_new ();
+ /* check new XDG cache */
+ path = g_build_filename (g_get_user_cache_dir (),
+ "thumbnails",
+ "normal",
+ NULL);
+ g_ptr_array_add (array, path);
+
+ path = g_build_filename (g_get_user_cache_dir (),
+ "thumbnails",
+ "large",
+ NULL);
+ g_ptr_array_add (array, path);
+
+ path = g_build_filename (g_get_user_cache_dir (),
+ "thumbnails",
+ "fail",
+ "gnome-thumbnail-factory",
+ NULL);
+ g_ptr_array_add (array, path);
+
+ /* cleanup obsolete locations too */
path = g_build_filename (g_get_home_dir (),
".thumbnails",
"normal",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]