- escaped = g_uri_escape_string (filename, NULL, FALSE);
- if (g_access (escaped, F_OK) == 0)
+ path = strstr (filename, "file://");
+ if (!path)
+ path = (gchar *) filename;
+ else
+ path = (gchar *) filename + strlen ("file://");
+
+ if (g_access (path, F_OK) == 0)