1
Author: Chow Loong Jin <hyperair@debian.org>
2
Description: Call dbus_g_thread_init before calling any dbus functions
3
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1048341
4
Index: gconf/gconf/gconf-dbus.c
5
===================================================================
6
--- gconf.orig/gconf/gconf-dbus.c 2012-09-11 09:54:10.056848441 +0800
7
+++ gconf/gconf/gconf-dbus.c 2012-09-11 10:07:03.967826677 +0800
12
+ /* Initialize DBus Glib for multithreading -- this fixes race conditions when
13
+ multi-threaded applications use gconf. Additionally, although the API
14
+ documentation says that dbus_g_thread_init() may only be called once, it is
15
+ actually really a wrapper for dbus_threads_init_default() which casn be
16
+ called as many times as necessary. */
17
+ dbus_g_thread_init ();
19
dbus_error_init (&error);
21
global_conn = dbus_bus_get_private (DBUS_BUS_SESSION, &error);