summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2016-10-29 20:30:53 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2016-10-29 20:31:54 -0500
commitd7237ad2b1e1f28d0cddd6c1d666186f5221aae6 (patch)
tree935ab420d63599a4e10afc11f9e0f0dd304be00a
parent7e47bc4f8e16151aa5dcef65f037a48368c2941b (diff)
downloadepiphany-d7237ad2b1e1f28d0cddd6c1d666186f5221aae6.tar.gz
main: remove startup error dialog
This should never ever be shown. I've never ever seen it shown. We should always always trigger the distro bug reporting tool if we fail to start. That means we'd better crash.
-rw-r--r--src/ephy-main.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 3310703ef..65d97ed5e 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -141,27 +141,6 @@ get_startup_id (void)
return retval;
}
-static void
-show_error_message (GError **error)
-{
- GtkWidget *dialog;
-
- /* FIXME better texts!!! */
- dialog = gtk_message_dialog_new (NULL,
- GTK_DIALOG_MODAL,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_CLOSE,
- _("Could not start Web"));
- gtk_message_dialog_format_secondary_text
- (GTK_MESSAGE_DIALOG (dialog),
- _("Startup failed because of the following error:\n%s"),
- (*error)->message);
-
- g_clear_error (error);
-
- gtk_dialog_run (GTK_DIALOG (dialog));
-}
-
static EphyStartupFlags
get_startup_flags (void)
{
@@ -332,10 +311,8 @@ main (int argc,
if (profile_directory && !incognito_mode)
flags |= EPHY_FILE_HELPERS_KEEP_DIR;
- if (!ephy_file_helpers_init (profile_directory, flags,
- &error)) {
- show_error_message (&error);
- exit (1);
+ if (!ephy_file_helpers_init (profile_directory, flags, &error)) {
+ g_error ("Fatal initialization error: %s", error->message);
}
/* Run the migration in all cases, except when running a private