diff --git a/exo-open/main.c b/exo-open/main.c index f2581f5..4d1af7b 100644 --- a/exo-open/main.c +++ b/exo-open/main.c @@ -559,25 +559,17 @@ main (gint argc, gchar **argv) if (uri == NULL) { - /* display an error dialog */ - dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, - _("Unable to detect the URI-scheme of \"%s\"."), *argv); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); - + g_printerr (_("Unable to detect the URI-scheme of \"%s\"."), *argv); + g_printerr ("\n"); result = EXIT_FAILURE; } else if (!exo_open_uri (uri, &err)) { if (err != NULL) { - /* display an error dialog */ - dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, - _("Failed to open URI \"%s\"."), uri); - gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s.", err->message); + g_printerr (_("Failed to open URI \"%s\"."), uri); + g_printerr ("\n %s.\n", err->message); g_error_free (err); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); } result = EXIT_FAILURE;