[gnome-documents] application: workaround a tracker bug
- From: Cosimo Cecchi <cosimoc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-documents] application: workaround a tracker bug
 
- Date: Mon, 29 Aug 2011 18:59:15 +0000 (UTC)
 
commit 0637d964902d9d28f91996266b6571549249eed0
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Aug 29 13:38:44 2011 -0400
    application: workaround a tracker bug
    
    The bug will be fixed with an API addition in tracker before the next
    release.
 src/application.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index add7223..a81e729 100644
--- a/src/application.js
+++ b/src/application.js
@@ -98,6 +98,12 @@ Application.prototype = {
         Gettext.textdomain('gnome-documents');
         String.prototype.format = Format.format;
 
+        // FIXME: tracker cursor have a bug when using the SQLite interface,
+        // where the data doesn't get updated until the cursor is finalized.
+        // Unfortunately, this doesn't play nice with garbage collection, so
+        // we need to force the (slow) DBus backend until that's fixed.
+        GLib.setenv('TRACKER_SPARQL_BACKEND', 'bus', true);
+
         GLib.set_prgname('gnome-documents');
         Gtk.init(null, null);
         EvDoc.init();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]