--- gnome-open.c~0 2009-04-23 11:29:13.000000000 +0200 +++ gnome-open.c 2013-10-30 20:58:38.959493727 +0100 @@ -25,6 +25,7 @@ GError *err = NULL; GFile *file; char *uri; + int ret=0; if (argc < 2) { @@ -37,20 +38,22 @@ argc, argv, NULL); - file = g_file_new_for_commandline_arg (argv[1]); - if (g_file_is_native (file) && !is_file_uri_with_anchor (argv[1])) - uri = g_file_get_uri (file); - else - /* For uris, use the original string, as it might be - modified by passing throught GFile (e.g. mailto: links) */ - uri = g_strdup (argv[1]); - g_object_unref (file); - - if (g_app_info_launch_default_for_uri (uri, NULL, &err)) - return 0; - - fprintf (stderr, _("Error showing url: %s\n"), err->message); - g_error_free (err); + for (int i=1; imessage); + g_error_free (err); + } + } - return 1; + return ret; }