[Tracker] patch for pidgin(known as gaim before)



Pidgin/Gaim has changed its log directory from ~/.gaim/logs to
~/.purple/logs. This patch adds the new path for chat log search.

Regards
-rick

--- trunk/src/trackerd/trackerd.c       Mon Jul 23 19:19:26 2007
+++ trunk/src/trackerd/trackerd.c-new   Mon Jul 23 19:04:29 2007
@@ -972,6 +972,24 @@
                                                                }
 
                                                                g_free (gaim);
+
+                                                               char * pidgin = g_build_filename 
(g_get_home_dir(), ".purple", "logs", NULL);
+
+                                                               if (tracker_file_is_valid (pidgin)) {
+                                                                       GSList *list;
+
+                                                                       tracker_add_service_path 
("GaimConversations", pidgin);
+
+                                                                       list = g_slist_prepend (NULL, pidgin);
+
+                                                                       tracker_log ("starting chat log 
indexing...");
+
+                                                                       process_directory_list (db_con, list, 
TRUE);
+
+                                                                       g_slist_free (list);
+                                                               }
+
+                                                               g_free (pidgin);
                                                        }
                                                        break;
 



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