[gnome-color-manager] trivial: properly detect gvfs temp files in the ICC profiles stores



commit 979387e0b56c4fcf2e4661bc7ebab8374578c3f4
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 18 17:14:45 2010 +0000

    trivial: properly detect gvfs temp files in the ICC profiles stores

 src/gcm-profile-store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-profile-store.c b/src/gcm-profile-store.c
index 0e294dd..7b48aa0 100644
--- a/src/gcm-profile-store.c
+++ b/src/gcm-profile-store.c
@@ -222,7 +222,7 @@ 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")) {
+	if (g_strrstr (path, ".goutputstream") != NULL) {
 		egg_debug ("ignoring gvfs temporary file");
 		goto out;
 	}



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