From 300c0137c2a098bf9dc64edd6a5725cce82a7e0e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 4 Jun 2013 12:17:52 +0100 Subject: [PATCH 3/4] Initialize libdbus for thread-safety Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65296 --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index 4cd171c..0c48ac5 100644 --- a/src/main.c +++ b/src/main.c @@ -28,6 +28,7 @@ #include #include +#include #include #include @@ -252,6 +253,10 @@ main(int argc, { int ret = 0; + if (!dbus_threads_init_default ()) + g_error ("Unable to initialize libdbus for thread-safety " + "(out of memory?)"); + g_set_prgname(UI_ID); haze_debug_set_flags_from_env (); -- 1.7.10.4