[evolution-couchdb] Add a temporary hack to avoid crashes on gnome-keyring in threads



commit c2c645c82be3bec1c0b5b6a25962b0fc4508a89f
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Fri Apr 1 17:38:12 2011 +0200

    Add a temporary hack to avoid crashes on gnome-keyring in threads

 addressbook/e-book-backend-couchdb-factory.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb-factory.c b/addressbook/e-book-backend-couchdb-factory.c
index 4cf0b56..a56ee58 100644
--- a/addressbook/e-book-backend-couchdb-factory.c
+++ b/addressbook/e-book-backend-couchdb-factory.c
@@ -22,6 +22,7 @@
 
 #include <libebackend/e-data-server-module.h>
 #include <libedata-book/e-book-backend-factory.h>
+#include <dbus/dbus.h>
 #include "e-book-backend-couchdb.h"
 
 E_BOOK_BACKEND_FACTORY_SIMPLE (couchdb, CouchDB, e_book_backend_couchdb_new)
@@ -32,6 +33,9 @@ void
 eds_module_initialize (GTypeModule *module)
 {
 	couchdb_type = _couchdb_factory_get_type (module);
+	/* FIXME: this is a hack to avoid crashes when calling gnome-keyring
+	   from desktopcouch_session_new */
+	dbus_threads_init_default ();
 }
 
 void



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