Usually, when I drag a link to the terminal, the link target is pasted in the terminal. However, when I just dragged a FTP link from Chromium to my Terminal (first result on Google for ftp pdf, ftp://ftp.ipswitch.com/ipswitch/manuals/ftpserv.pdf), a file download was immediately initiated (I knew because a desktop notification appeared).I tried to locate the downloaded file using find ~ -iname '*.pdf' (also in /tmp), but I didn't find any traces. When I tried to reproduce the problem by dragging the ftp-URL again, the download completed much faster than before, from which I infer that the file is still cached, somewhere.So, my question are:Why is the ftp resource being downloaded after I drag the link to my Terminal?(instead of being pasted as text, like http-URLs)Where can I find the downloaded file? (I want to delete it)
Where to find the downloaded file after dragging a FTP URL to the terminal?
terminal;ftp;konsole;drag and drop
Why is the ftp resource being downloaded after I drag the link to my Terminal? (instead of being pasted as text, like http-URLs)The resource is not being downloaded, but queried for its path and type. When dropping a file or URL on Konsole, it will try to convert it to a URL or path. Try for instance dropping a file:///tmp/ URL from Firefox to Konsole, it will instead show up as /tmp/. Another reason why this status call is needed is to check whether it is a directory or not (so you can drop a directory and select Change Directory To.For this status discovery, Konsole depends on various protocols to provide a KIO interface. Now usually you should get a menu with Copy Here, Move Here, Link Here and Paste Location options. However for some reason (presumably a race condition bug?), the menu is not always offered and a download is immediately started (relevant code is in TerminalDisplay::dropEvent).This was observed in Konsole 15.08.0 (Qt 5) on Arch Linux by the way.Where can I find the downloaded file? (I want to delete it)There is a good chance that the file was not actually saved and so you do not need to delete it. If you think it is still somewhere, look in /proc/$pid/fd/ for file descriptors of your process (or invoke lsof). (Have you also tried /var/tmp/ besides /tmp and ~?)In the next 15.xx version, a new option is available to disable this Drag 'n' Drop functionality and simply paste everything as text (bug 304290). You can find this by opening your Profile settings, tab Mouse, option Disable drag and drop menu for URLs and files.