summaryrefslogtreecommitdiffstats
path: root/main/nautilus/007-tracker0.10-compat.patch
blob: fbac65936970a9cafca5d28ecf35d38f94eb35ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: nautilus-2.32.2/libnautilus-private/nautilus-search-engine-tracker.c
===================================================================
--- nautilus-2.32.2.orig/libnautilus-private/nautilus-search-engine-tracker.c
+++ nautilus-2.32.2/libnautilus-private/nautilus-search-engine-tracker.c
@@ -122,10 +122,16 @@ open_libtracker (void)
 		done = TRUE;
 		flags = G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL;
 
-		tracker = g_module_open ("libtracker-client-0.8.so.0", flags);
+		tracker = g_module_open ("libtracker-client-0.10.so.0", flags);
+		/* we use the same API as in 0.8 */
 		version = TRACKER_0_8;
 
 		if (!tracker) {
+			tracker = g_module_open ("libtracker-client-0.8.so.0", flags);
+			version = TRACKER_0_8;
+		}
+
+		if (!tracker) {
 			tracker = g_module_open ("libtracker-client-0.7.so.0", flags);
 
 			if (tracker && !g_module_symbol (tracker, "tracker_resources_sparql_query_async", &x)) {