diff options
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 926527193..0d9fac6f3 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -170,13 +170,31 @@ ephy_shell_init (EphyShell *gs) /* This ensures mozilla is fired up */ single = ephy_embed_shell_get_embed_single (EPHY_EMBED_SHELL (gs)); + if (single != NULL) + { + g_signal_connect (G_OBJECT (single), + "new_window_orphan", + G_CALLBACK(ephy_shell_new_window_cb), + NULL); - g_signal_connect (G_OBJECT (single), - "new_window_orphan", - G_CALLBACK(ephy_shell_new_window_cb), - NULL); - - ephy_init_services (gs); + ephy_init_services (gs); + } + else + { + GtkWidget *dialog; + + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_CLOSE, + _("Epiphany can't be used now. " + "Mozilla initialization failed. Check your " + "MOZILLA_FIVE_HOME environmental variable.")); + gtk_dialog_run (GTK_DIALOG (dialog)); + + exit (0); + } } static void |