self = g_object_new (EMPATHY_TYPE_APP,
"application-id", EMPATHY_DBUS_NAME,
- "flags", G_APPLICATION_IS_SERVICE,
NULL);
if (self == NULL)
*/
self->start_hidden = FALSE;
+ g_application_hold (G_APPLICATION (app));
+
empathy_window_present (GTK_WINDOW (self->window));
/* Display the accounts dialog if needed */
app = empathy_app_new (argc, (const gchar * const *) argv,
no_connect, start_hidden);
- g_application_hold (G_APPLICATION (app));
g_application_run (G_APPLICATION (app), argc, argv);
notify_uninit ();