GNOME Bugzilla – Bug 592125
Non-uniform behaviour with drag-and-drop
Last modified: 2021-06-18 15:17:26 UTC
bug 528670 introduced greater compatibility with POSIX apps so GIO resources can be accessed via ~/.gvfs/resource on server/filename. This is now enabled for double-clicking in Nautilus but not for drag and drop. e.g. Double clicking smb://eddie/mp3/a/A Track.mp3 will cause Audacious to be launched with /home/gdh/.gvfs/mp3 on eddie/a/A Track.mp3, but dragging that file into the playlist of Audacious will cause "smb://eddie/mp3/a/A Track.mp3" to be dropped instead. It would be wonderful if the behaviour could be unified so that end users can just expect applications to work irrelevant of whether they're GIO-aware.
I have no experience with creating patches but it seems that only a small modification has to be made (correct me if I'm wrong - I'm only trying to get this thing fixed as soon as possible). In file libnautilus-private/nautilus-icon-dnd.c, in function icon_get_data_binder, replace the following code: uri = nautilus_icon_container_get_icon_uri (container, icon); if (uri == NULL) { g_warning ("no URI for one of the iterated icons"); return TRUE; } with something like: uri = nautilus_icon_container_get_icon_uri (container, icon); if (uri == NULL) { g_warning ("no URI for one of the iterated icons"); return TRUE; } GFile *file = g_file_new_for_uri(uri); char *path = g_file_get_path(file); // Free the file object?? Will this work? g_free(file); if (path != NULL) { g_free(uri); uri = path; }
Mass component change due to BZ cleanup, sorry for the noise.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of Files (nautilus), then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/nautilus/-/issues/ Thank you for your understanding and your help.