GNOME Bugzilla – Bug 663544
Dragging files from Nautilus to Location field in FT chooser doesn't work
Last modified: 2018-05-22 15:11:06 UTC
Created attachment 200870 [details] “Select a file” dialog I tried to send Jonny a file today. I first tried dragging it from Nautilus into the conversation window. The window got the black drag-target frame and the mouse pointer grew a + symbol, but dropping it didn't work. So then I right-clicked him on my roster, picked Send File, and dragged the file from Nautilus into the Location field. It accepted the drag, and the Location was set to a file:/// URL. But when I hit Send, the file transfer dialog immediately showed an error: Error sending a file Error stating file '/home/wjt/....': No such file or directory Screenshots attached. I think it's related to un-URL-encoding the path. The spaces in directory names are converted from %20 to ' ', but not those in the filename. Also, "stating" means "making a statement". Assuming this is meant to be a conjugation of "stat", I would use "statting". But actually I would not use the word "stat" in a user-visible message. :) Also, the first line of the message is completely redundant with the second, and neither line says Jonny's name. Dropping the file into the file area of the file chooser behaves completely differently: it navigates to that directory and selects that file, which works perfectly. So arguably there's a GtkFileChooser bug in here somewhere. But Empathy could stand to present the error more clearly in any case.
Created attachment 200871 [details] “File Transfers” dialog containing “Error stating file”
(In reply to comment #0) > I first tried dragging it from Nautilus into the conversation window. The > window got the black drag-target frame and the mouse pointer grew a + symbol, > but dropping it didn't work. Yeah, sending file from empathy-chat doesn't work atm: bug #640513 > So then I right-clicked him on my roster, picked Send File, and dragged the > file from Nautilus into the Location field. It accepted the drag, and the > Location was set to a file:/// URL. > > But when I hit Send, the file transfer dialog immediately showed an error: > > Error sending a file > Error stating file '/home/wjt/....': No such file or directory > > Screenshots attached. > > I think it's related to un-URL-encoding the path. The spaces in directory names > are converted from %20 to ' ', but not those in the filename. Sounds like a GTK+ bug, I'll investigate. > Also, "stating" means "making a statement". Assuming this is meant to be a > conjugation of "stat", I would use "statting". But actually I would not use the > word "stat" in a user-visible message. :) Also, the first line of the message > is completely redundant with the second, and neither line says Jonny's name. The first line is from Empathy and the second from GLib (which is good to display as well). GLib seems to agree with you and changed this error message already: bug #640212
Drag and dropping files into the conversation still doesn't work in 3.3.90...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/457.