--- libgnome/gnome-open.c.orig	2007-03-27 23:14:26.000000000 +0200
+++ libgnome/gnome-open.c	2008-04-30 20:26:26.000000000 +0200
@@ -1,11 +1,9 @@
 #include <config.h>
 
-#include <glib.h>
+#include <gio/gio.h>
 #include <stdio.h>
-#include <libgnome/gnome-url.h>
 #include <libgnome/gnome-program.h>
 #include <libgnome/gnome-init.h>
-#include <libgnomevfs/gnome-vfs-utils.h>
 
 #include <glib/gi18n-lib.h>
 
@@ -26,9 +24,11 @@
 		      argc, argv,
 		      NULL);
 
-  uri = gnome_vfs_make_uri_from_input_with_dirs (argv[1],
-						 GNOME_VFS_MAKE_URI_DIR_CURRENT);
-  if (gnome_url_show (uri, &err))
+  file = g_file_new_for_commandline_arg (argv[1]);
+
+  uri = g_file_get_uri (file);
+
+  if (g_app_info_launch_default_for_uri (uri, NULL, &err))
     return 0;
 
   fprintf (stderr, _("Error showing url: %s\n"), err->message);
