GNOME Bugzilla – Bug 504824
Moving volume icons across the desktop triggers copy and not move
Last modified: 2007-12-27 10:55:35 UTC
With Nautilus 2.21.1 (GIO powered), dragging the trash icon across the desktop triggers the "copy" action: the mouse cursor gets a "+" near it and if I release the button, I get an error box saying: "There was an error getting information about "trash". Error while getting mount info: The specified location is not supported." I expect the trash to move its icon on drag, not to copy itself. I'm using gvfs 0.1.0, nautilus 2.21.1 and glib 2.15.0.
Same for all other special icons on the desktop. Normal files work well though.
*** Bug 504970 has been marked as a duplicate of this bug. ***
*** Bug 505379 has been marked as a duplicate of this bug. ***
Modifying summary, as this happens with any volume and not only with Trash.
Created attachment 101647 [details] [review] proposed patch This happens because the URI for "special" icons on the desktop has the "x-nautilus-desktop:" prefix and we do not check for it when doing DnD. Attached patch solves the problem checking it early and assigning as action for DnD GDK_ACTION_MOVE in nautilus_drag_default_drop_action_for_icons ().
Thats not quite right. We should only do that in the target-is-desktop case. I'm commiting a similar patch that moves the check. 2007-12-27 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-dnd.c: (nautilus_drag_default_drop_action_for_icons): Default dnd of desktop icons to move. (#504824) Based on patch by Cosimo Cecchi