# Make g_file_get_path return NULL for GDummyFile's whose URI is not file:///
# LP: https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/314263
# Gnome: http://bugzilla.gnome.org/show_bug.cgi?id=566747
Index: glib2.0-2.19.5/gio/gdummyfile.c
===================================================================
--- glib2.0-2.19.5.orig/gio/gdummyfile.c	2009-01-30 15:27:58.000000000 +0000
+++ glib2.0-2.19.5/gio/gdummyfile.c	2009-01-30 16:08:12.000000000 +0000
@@ -145,6 +145,15 @@
 g_dummy_file_get_path (GFile *file)
 {
   GDummyFile *dummy = G_DUMMY_FILE (file);
+  char *uri_scheme = NULL;
+  
+  uri_scheme = g_file_get_uri_scheme (file);
+  if (strcmp(uri_scheme, "file") != 0) {
+  	g_free (uri_scheme);
+  	return NULL;  
+  }
+  
+  g_free (uri_scheme);
 
   if (dummy->decoded_uri)
     return g_strdup (dummy->decoded_uri->path);
