~larsu/indicator-session/glib-deadlock-workaround

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Lars Uebernickel
  • Date: 2013-10-17 12:36:09 UTC
  • Revision ID: lars.uebernickel@canonical.com-20131017123609-52pcjpp3m0fvswoh
Work around glib's type initialization deadlock

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
  GMainLoop * loop;
44
44
  IndicatorSessionService * service;
45
45
 
 
46
  /* Work around a deadlock in glib's type initialization. It can be
 
47
   * removed when https://bugzilla.gnome.org/show_bug.cgi?id=674885 is
 
48
   * fixed.
 
49
   */
 
50
  g_type_ensure (G_TYPE_DBUS_CONNECTION);
 
51
 
46
52
  /* boilerplate i18n */
47
53
  setlocale (LC_ALL, "");
48
54
  bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);