[tracker] libtracker-miner: Special case .xsession-errors and ignore all about it



commit 2dd7b5bc6352ece9918af3bf8a9f9d5eebacda09
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jun 14 15:28:37 2011 +0100

    libtracker-miner: Special case .xsession-errors and ignore all about it
    
    This includes events, debugging and handling.

 src/libtracker-miner/tracker-monitor.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 798d738..89e0b45 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1165,6 +1165,12 @@ monitor_event_cb (GFileMonitor      *file_monitor,
 	/* Get URIs as paths may not be in UTF-8 */
 	file_uri = g_file_get_uri (file);
 
+	/* Don't have anything to do with .xsession-errors */
+	if (g_str_has_suffix (file_uri, ".xsession-errors")) {
+		g_free (file_uri);
+		return;
+	}
+
 	if (!other_file) {
 		other_file_uri = NULL;
 		g_debug ("Received monitor event:%d (%s) for file:'%s'",



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