[gnome-color-manager] trivial: ignore gvfs temporary files in the icc profile directory to avoid a cache refresh



commit fd92b83c51f6b3c435f7e66018befa84039788b6
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 18 13:28:16 2010 +0000

    trivial: ignore gvfs temporary files in the icc profile directory to avoid a cache refresh

 src/gcm-profile-store.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-profile-store.c b/src/gcm-profile-store.c
index be06a12..0e294dd 100644
--- a/src/gcm-profile-store.c
+++ b/src/gcm-profile-store.c
@@ -222,6 +222,10 @@ gcm_profile_store_file_monitor_changed_cb (GFileMonitor *monitor, GFile *file, G
 
 	/* just rescan everything */
 	path = g_file_get_path (file);
+	if (g_str_has_prefix (path, ".goutputstream")) {
+		egg_debug ("ignoring gvfs temporary file");
+		goto out;
+	}
 	egg_debug ("%s was added, rescanning everything", path);
 	gcm_profile_store_add_profiles (profile_store);
 out:



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