files icon indicating copy to clipboard operation
files copied to clipboard

drag and drop from network share fails

Open mohataj opened this issue 2 years ago • 10 comments

application just hangs after drag and drop or creates unreliable behaviour

just installed nautilus and it has a flawless drag and drop

mohataj avatar May 21 '23 07:05 mohataj

Can you give some more detail:

  • What network protocol were you using? (e.g. SMB, AFP, FTP)
  • Is only DnD affected i.e. does cut and paste have the same problem
  • How many files are being moved at once, approximately.
  • Can you give more information on "unreliable behaviour"? Does it work sometimes and sometimes not? Do some files work and some not?
  • If you run Files from the terminal are there any error messages produced when the problem occurs?

jeremypw avatar May 21 '23 08:05 jeremypw

If you give sufficient information I will try to reproduce the problem and fix it.

jeremypw avatar May 21 '23 08:05 jeremypw

smb server, dnd does not work, cut&paste does work, only one file is dragged unreliable is - dragging image to chrome works, dragging to krita or any paint app does not work, dragging mp3 file to desktop works, dragging to vlc or kid3 does not work no message in terminal

vlc says

Ihre Eingabe konnte nicht geöffnet werden: VLC kann die Medienadresse 'smb://fritz.box/fritz.nas/8TB/Import%20-%20noch%20einzusortieren/Aphex%20Twin%20Ambient%20Mix/Aphex%20Twin%20-%20Aphex%20Twin%20Ambient%20Mix.mp3' nicht öffnen. Für Details bitte im Fehlerprotokoll nachsehen.

nautilus creates this working link with drag and drop

/run/user/1000/gvfs/smb-share:server=fritz.box,share=fritz.nas/8TB/Import - noch einzusortieren/Aphex Twin Ambient Mix/Aphex Twin - Aphex Twin Ambient Mix.mp3

mohataj avatar May 21 '23 08:05 mohataj

Thanks for the extra information. Does this issue relate only to DnD between Files and other apps? Does Dnd within Files work OK for remote shares?

dragging mp3 file to desktop works

Elementary does not implement an active desktop natively so I am not sure what this means.

Files definitely needs more work done on inter-app drag and drop.

jeremypw avatar May 21 '23 10:05 jeremypw

cure - copy to desktop folder in io.elementary.files is flawless and to any other folder

dnd to other apps is defect even doubleclick on smb share file is opening it successful, when dnd does not

image

mohataj avatar May 21 '23 12:05 mohataj

and using dnd is needed as opening share via open dialog from /var/run/user....gvfs fails miserably and dnd via nautilus works flawless

mohataj avatar May 21 '23 12:05 mohataj

Thanks for the extra info. I have a vague memory of this coming up before - some apps will not open remote content directly. Not sure how Nautilus works around this - will have to check its code.

jeremypw avatar May 21 '23 16:05 jeremypw

Just to clarify - are you editing the remote content or just viewing it?

jeremypw avatar May 21 '23 16:05 jeremypw

I can confirm that dragging a PDF file from a SMB share onto Evince fails with Files - but it does also with Nautilus (latest flatpak). Both give an error like "Unable to open document “file:///run/user/1000/gvfs/smb-share:domain=WORKGROUP, ..."

jeremypw avatar May 21 '23 16:05 jeremypw

I think we probably need to focus on a particular document type and app at first so we can set up a test scenario and fix that. That will probably also fix other situations or at least lead to fixes.

jeremypw avatar May 21 '23 16:05 jeremypw