aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-17 08:23:13 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-17 08:23:13 -0400
commitf1fe817863e7f167fdb4f98ebd9e5fed33d659b3 (patch)
tree2c2ba8a178d4f4a2d69fe29f9bc5fa9de4153c27
parente38b6293bb37557d27efd052c82ee44d70996077 (diff)
downloadayatana-indicator-datetime-f1fe817863e7f167fdb4f98ebd9e5fed33d659b3.tar.gz
ayatana-indicator-datetime-f1fe817863e7f167fdb4f98ebd9e5fed33d659b3.tar.bz2
ayatana-indicator-datetime-f1fe817863e7f167fdb4f98ebd9e5fed33d659b3.zip
Work around glib's type initialization deadlock
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index f791683..cd7a6a5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,6 +60,12 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
IndicatorDatetimeService * service;
GMainLoop * loop;
+ /* Work around a deadlock in glib's type initialization. It can be
+ * removed when https://bugzilla.gnome.org/show_bug.cgi?id=674885 is
+ * fixed.
+ */
+ g_type_ensure (G_TYPE_DBUS_CONNECTION);
+
/* boilerplate i18n */
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);