Bug 483055

Summary: Dolphin does not have a mechanism for mounting network shares in userspace
Product: [Applications] dolphin Reporter: Shawn W Dunn <sfalken>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: clay, julien.dlq, kfm-devel, ngompa13, xalt7x.service
Priority: NOR Keywords: qt6
Version: 23.08.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=432856
https://bugs.kde.org/show_bug.cgi?id=492793
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of GNOME Menu showing Mount option
Display of gio/gvfs mount point, from mount operation

Description Shawn W Dunn 2024-03-10 02:35:12 UTC
Created attachment 166839 [details]
Example of GNOME Menu showing Mount option

SUMMARY
When navigating to and browsing a network share in Dolphin, be it NFS/SMB/Etc, Dolphin doesn't ever actually mount that share anywhere on the filesystem, and appears to just be doing network browsing.   In GNOME, Nautilus and gio/gvfs allow for mounting those network shares in userspace.  (/run/user/UID/gvfs/protocol:server,sharename) that is predictable and the same from mount to mount.

The closest thing we can do in plasma right now, is to use kio in the terminal, which mounts the share in /run/user/UID/kio-$SOME_RANDOM_UID that changes every time you mount it, and doesn't integrate with Dolphin.

I'm including screenshots from GNOME, just as an example of the desired behavior.

STEPS TO REPRODUCE
1. Open Dolphin
2. Navigate to a Network Share
3. Attempt to find a method to mount those shares in userspace

OBSERVED RESULT
Dolphin does not have a mechanism in place, that I can find, to mount network shares to the filesystem, in userspace (or anywhere else, for that matter)

EXPECTED RESULT
A Right-Click Mount option, or something in the menu allowing network shares to be mounted to the filesystem

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:  Linux 6.7.7-1-default, openSUSE Kalpa, Wayland Session
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Shawn W Dunn 2024-03-10 02:36:02 UTC
Created attachment 166840 [details]
Display of gio/gvfs mount point, from mount operation
Comment 2 Neal Gompa 2024-03-10 02:37:52 UTC
Confirmed also that this is an issue on Fedora KDE 40. I would very much like to see this fixed to make things much easier with a variety of applications to access data from network shares predictably.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora Linux 40 (KDE Plasma)
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 3 Yevhen Popok 2024-09-08 08:43:18 UTC
This is actually implemented in kio-fuse,
See: https://invent.kde.org/system/kio-fuse#running-kio-fuse-manually
> Let's assume you want to make the files at ftp://user:password@server/directory accessible in your local file system.
> send the corresponding mount command
> dbus-send --session --print-reply --type=method_call  --dest=org.kde.KIOFuse /org/kde/KIOFuse org.kde.KIOFuse.VFS.mountUrl string:ftp://user:password@server/directory
> If it succeeded, you will get the location that the URL is mounted on as a reply. In this case it would be $dir/ftp/user@server/directory and the directory will be accessibly at that URL.
> After your work is done, simply run
> fusermount3 -u $dir
> to unmount the URL and exit kio-fuse.
Unfortunately it uses single kio-fuse top directory (e.g., /run/user/1000/kio-fuse-IKQugV) for different mounts so you can't really unmount some particular network location.
That might be one of the reason why this feature is still not exposed to the GUI.
Comment 4 Yevhen Popok 2024-09-08 09:37:24 UTC
Turns out, there's no need to use CLI for kio-fuse mounts
Just type some URL in Dolphin (e.g., sftp://user@server) and you will be able to browse mount (e.g. /run/user/1000/kio-fuse-KHGlOA/sftp/user@server) with other applications. However,  unlike with GVFS, KIOFuse will create local directory with unique ID (see https://invent.kde.org/system/kio-fuse/-/issues/18 and https://bugs.kde.org/show_bug.cgi?id=432856).
Comment 5 Shawn W Dunn 2024-09-09 15:14:57 UTC
(In reply to Yevhen Popok from comment #4)
> Turns out, there's no need to use CLI for kio-fuse mounts
> Just type some URL in Dolphin (e.g., sftp://user@server) and you will be
> able to browse mount (e.g. /run/user/1000/kio-fuse-KHGlOA/sftp/user@server)
> with other applications. However,  unlike with GVFS, KIOFuse will create
> local directory with unique ID (see
> https://invent.kde.org/system/kio-fuse/-/issues/18 and
> https://bugs.kde.org/show_bug.cgi?id=432856).

Ok, that's progress.  And actually better than what Nautilus/gvfs does on the backend, for sftp/sshfs anyway.   But doing an smb:// mount for instance, using this method, nothing gets mounted to the filesystem.