Bug 496659

Summary: Mounts handled by systemd appear in then disappear within 4 seconds from the Places panel
Product: [Applications] dolphin Reporter: Phil Rigby <phil.rigby>
Component: panels: foldersAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdedev, kfm-devel
Priority: NOR    
Version: 24.08.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Mounts showing then not
Error when in remote fileshare

Description Phil Rigby 2024-11-25 05:34:37 UTC
Created attachment 176099 [details]
Mounts showing then not

SUMMARY
I have 4 mounts to a remote filesystem (NAS on the same subnet) that I have configured Systemd to mount at bootup.  They mount as they should and are available via command line.  However they do not display in the Places panel in Dolphin, when Dolphin is first opened.  If I navigate to /mnt they will then show up under "Remote" in Places, however the links will disappear anywhere from 3 - 8 seconds afterwards.  Further clicking into the directories will bring back the one I clicked on, but again it will disappear in short order.  This is visually distracting to see the remote panel constantly updating but more importantly when you want to access those shares quickly, you can't unless you navigate to /mnt first and at that point, you may as well just drill in manually rather than use the link in Places.

STEPS TO REPRODUCE
1.  Mount a filesystem via systemd (.mount or .automount, makes no difference)
2.  Open Dolphin, the mount will not show under Remote in Places
3. Navigate to /mnt (or wherever your mount point actually is)

OBSERVED RESULT
Dolphin will then show the fileshare, but it will disappear very quickly although the mount itself is still 100% available, verified by command line/df/mount etc

EXPECTED RESULT
Mounted shares show up in Remote/Places and stay there while filesystem is mounted.

This issue does -not- occur when using straight /etc/fstab to mount the fileshares.  Only when happening via systemd.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0 
Qt Version: 6.7.3

ADDITIONAL INFORMATION
I've added two screenshots, taken 10 seconds apart, where you can see the mounts showing in the panel then how they've disappeared (I realize it's not the best demo of the issue, but it happens quick and is hard to capture accurately).

Works fine with /etc/fstab.  Navigating the mounts manually in Dolphin also works fine.  It's just the links that show up under Remote are not present as they should be and do not stay, when you are able to get them to show up.

Kernel - 6.11.8
Wayland, if that matters
Comment 1 Phil Rigby 2024-11-26 15:17:35 UTC
Created attachment 176137 [details]
Error when in remote fileshare

If you'e actually in one of the remote shares when it disappears from the remote panel, you get a Dolphin message saying /mnt is no longer available - see new screenshot.
Comment 2 Phil Rigby 2024-11-26 16:57:06 UTC
So upon digging into this further, it would seem that it is indeed the .automount that's causing the issue.  When I was trying different combinations earlier that automount must still of been getting used, even though I was specifying the straight .mount files.

So I don't know if this counts as a bug or not, as the automount is supposed to mount the filesystem on demand, but I would think it would remain visible in Dolphin even after a period of non-use (certainly much more than 8 seconds!) as it's still present when you run a df or a mount from a command line.

I've removed my .automounts and using regular .mounts and things are behaving as expected, with no entries in /etc/fstab for these remote filesystems.