GNOME Bugzilla – Bug 676122
can't get photos off my phone
Last modified: 2013-05-20 07:35:53 UTC
Created attachment 214144 [details] screenshot I can't seem to access my phone using the file chooser. I can see it with Nautilus.
The problem is that instead of showing gvfs mounts if fuse support is installed, we're restricted to using local paths if "local-only" is set to TRUE. Instead, the filechooser should be checking with the gvfs daemon whether fuse support is available. If it is, show remote mounts too, as they will be accessed through fuse.
We do a bunch of "if (impl->local_only && g_file_is_native (file))" in the file chooser. However, I just noticed that the docs for g_file_is_native() say: * On some systems non-native files may be available using * the native filesystem via a userspace filesystem (FUSE), in * these cases this call will return %FALSE, but g_file_get_path() * will still return a native path. So we need to see each of those calls in the file chooser's code, and see which can be replaced by a helper function that does g_file_is_native() and checks for the file actually having a filesystem path.
You'll need to replace those by a g_file_get_path() call that wouldn't leak memory (a new g_file_has_path for example), and make sure that URIs you give back to the application go through: file = g_file_new_for_uri (uri); path = g_file_get_path (file); ret = g_filename_to_uri (path, NULL, NULL); So you give back a URI but in the file:/// scheme.
*** This bug has been marked as a duplicate of bug 586367 ***