--- glib/gio/gio-tool-open.c	2017-10-26 01:58:37.141985214 +0200
+++ glib.new/gio/gio-tool-open.c	2017-10-26 02:09:30.829929007 +0200
@@ -80,10 +80,19 @@
     {
       GFile *file;
       char *uri;
+      const char *fixed_uri;
 
       file = g_file_new_for_commandline_arg (argv[i]);
       uri = g_file_get_uri (file);
-      res = g_app_info_launch_default_for_uri (uri, NULL, &error);
+      if (strncmp("file:", uri, 5) == 0)
+      {
+          fixed_uri = uri;
+      }
+      else
+      {
+          fixed_uri = argv[i];
+      }
+      res = g_app_info_launch_default_for_uri (fixed_uri, NULL, &error);
 
       if (!res)
 	{
