Skip to content
Commit f9b90f3e authored by Hans Petter Jansson's avatar Hans Petter Jansson Committed by Bertrand Lorentz
Browse files

Avoid race when using GConf and DBus with threads (bgo#692374)



GConf causes us to make indirect calls to libdbus from multiple threads,
resulting in crashes if threads are not initialized explictly. As a
workaround, we initialize dbus-glib for multithreading.

This fixes adds an optional build-time dependency on dbus-glib, and will
only be enabled if that dependency is satisfied.

Some distros have addressed this issue by patching the underlying
llibraries (gconf or gconf-sharp), so they don't have to enable that
fix. But it should not conflict with those patches, as
dbus_g_thread_init can be called multiple time, contrary to what the
API documentation says.

Signed-off-by: default avatarBertrand Lorentz <bertrand.lorentz@gmail.com>
parent ac6c2f49
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment