Bug 429067 - Dolphin does not return the path of the locally mounted network drive through kio-fuse during drag and drop
Summary: Dolphin does not return the path of the locally mounted network drive through...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks: 472202
  Show dependency treegraph
 
Reported: 2020-11-13 19:26 UTC by Dashon
Modified: 2024-05-01 19:55 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2020-11-13 19:26:10 UTC
SUMMARY
I was having a hard time figuring out if kio-fuse was working because applications don't seem to be able to access the locally mounted folder. After manually going to the directory /run/user/1000/kio-fuse*/server_name, I was able to confirm that dolphin was in fact using kio-fuse to mount the sftp drive. However, when using the add network folder button in dolphin under the remote section. None of the files accessed from that location return the path of the locally mounted folder. An example of the problem is when I drag and drop a file from dolphin while in a remote location to a separate terminal instance. Since dolphin seems to pass the sftp://url instead of the /run/user/1000/etc url.  Command line utilities are unable to make use of files on remote drives. Pressing the F4 button correctly shows the full kio-fuse mounted path url. I can then copy this and manually navigate to that directory and do what I need to do there. After confirming that operations work with that url. I decided to quickly install nautilus to see if it suffered from the same problem. If you drag and drop a folder from nautilus into konsole the full locally gvfs-fuse mounted path url is given to konsole instead of the sftp:// location shown in the path bar. This way terminal commands can make use of them. It seems that gui apps such as all the kde apps (of course), gimp, mypaint, and libreoffice seem to receive the usable kio-fuse mounted path. I just can't seem to get that path into a terminal.

STEPS TO REPRODUCE
1. Have kio-fuse installed

2. Mount a remote drive through the add remote ssh (sftp protocol) drive using the add network folder shorcut in dolphin. It should be located under the remote section in the Network folder. 

3. Drag and drop or copy the location of any folder/file in the remote drive to a terminal. Or try to open a file with a program that does not have native sftp support. 

OBSERVED RESULT
Nothing will happen or the program will fail because the file url is incomprehensible to the external program. An example would be running mediainfo on a video file off of said network drive. If the url is the sftp://etc one that dolphin returns. Mediainfo will just sit there. However if it is the /run/user/1000/etc url mediainfo will work as expected.

EXPECTED RESULT
I think dolphin should return the path url of the kio-fuse local mount instead. The way that nautilus seems to do.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20201111
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.1-2-default
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 620
Comment 1 Nate Graham 2020-11-26 03:47:37 UTC
Using step 2 does not actually use kio-fuse I believe.

Regardless, the UX here is poor and we need to fix it somehow.
Comment 2 Dashon 2020-11-26 04:34:51 UTC
You're right about step 2. The whole process was kinda confusing to me at first.
Comment 3 Sin Jeong-hun 2024-04-30 07:12:56 UTC
Is this a bug or an enhancement? Because, I think the fix would be simple, and yet it's 4-years old.

If I open an SMB shared directory and double-click a video file, MPV plays it fine, because Dolphin passes a converted local address to MPV. But if I drag-and-drop the same file to the same MPV, MPV crashes, because Dolphin passes the raw "smb://" address. Then, can't this be solved by passing the same converted local address for drag-and-drop, too? Why pass different addresses depending on double-click or drag-and-dropping?

If for some historical backward-compatibility reason, drag-and-drop needs to remain raw network address, how about having an option in the Dolphin's configuration? It could allow users to choose whether to use converted local address or the raw network address for drag-and-drop.