GNOME Bugzilla – Bug 529363
dnd between nautilus and gtkfileselector doesn't work correctly
Last modified: 2013-06-01 12:28:11 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/220294 "Opening a file by bragging it on the Location text widget in the Gtk file chooser results in an error, i.e. the application cannot find the file. It looks like that, when using Drag and Drop, the file name gets converted to a file:// URL, and that the file chooser is not able to understand URLs entered in the Location text widget. On Hardy, I can easily and reliably reproduce this issue Hardy with almost any Gtk application (Firefox and OpenOffice, too): * Start eog, evince, or gedit * Choose File -> Open (Ctrl-O) * From nautilus, drag any file on the Location text widget * Get some error. With gedit or eog, the error message includes the file name. For example: "No images found in '/home/danilo/file:/home/danilo/Examples/kubuntu-leaflet.png'." Using libgtk2.0-0 version 2.12.9-3ubuntu2 with it_IT.UTF-8 locale. A video showing the issue is attached. http://launchpadlibrarian.net/13622120/gtk-filechooser-open-dnd.gif video showing the issue (1.6 MiB, image/gif)"
Created attachment 110915 [details] [review] Add support for dragging URI targets to GtkFileChooserEntry and replace the entry text with the parse name of the first URI.
Dragging a file to the file chooser seems to work fine for me in Ubuntu Karmic. I wonder if this was fixed in the meantime in some other way.
On both Ubuntu Lcuid and Maverick, it works sometimes, but not other times. I haven't yet figured out what makes it work or not work.
*** This bug has been marked as a duplicate of bug 356312 ***