After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 592125 - Non-uniform behaviour with drag-and-drop
Non-uniform behaviour with drag-and-drop
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: general
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-17 18:58 UTC by Gavin Hamill
Modified: 2021-06-18 15:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gavin Hamill 2009-08-17 18:58:53 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.
Comment 1 Ivo Smits 2009-10-30 14:20:01 UTC
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;
	}
Comment 2 Cosimo Cecchi 2012-07-20 16:06:50 UTC
Mass component change due to BZ cleanup, sorry for the noise.
Comment 3 André Klapper 2021-06-18 15:17:26 UTC
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.