Bug 456571

Summary: Plasma stopped mounting my attached device On Login
Product: [Frameworks and Libraries] frameworks-solid Reporter: skierpage <info>
Component: generalAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.94.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description skierpage 2022-07-11 02:29:41 UTC
SUMMARY
When I installed Fedora 36 KDE spin, instead of adding my Windows NTFS drive to /etc/fstab, in System Settings > Removable Devices > Attached Devices I checked "On Login" for that drive (as I recall, to enable the per-drive checkboxes I first had to uncheck "All Known Devices - On Login" and "All Known Devices - On Attach"). After this, upon logging into Plasma, I got a prompt (as I recall "Authentical Required - PolicyKit Authentication is required to mount...") and Plasma/KDE/Solid mounts the drive. This worked, until a Fedora package update sometime around a week or so ago. Now Plasma never mounts my Windows drive on reboot or logging out and back in. The checkmark's tooltip is quite specific "This device will be automatically mounted at login", but it ain't happening.

STEPS TO REPRODUCE
1.  Have an attached drive not in /etc/fstab.
2.  In System Settings > Removable Devices > Attached Devices, check "On Login" for that drive 
3. Reboot.

OBSERVED RESULT
On latest Fedora/KDE the drive isn't mounted. There's no prompt for password.

EXPECTED RESULT
At some point in booting into Plasma, the drive is mounted.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)

KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3 on Wayland
Kernel Version: 5.18.10-200.fc36.x86_64 (64-bit)

ADDITIONAL INFORMATION
One workaround to manually mount the partition is to enter in a terminal like Konsole the command line `udisksctl mount -b /dev/sda3` where /dev/sda3 is the device of the attached drive.

I didn't find anything relevant in journalctl. Is there any relevant logging to turn on? I think Plasma - Solid - kded - udisks talk to each other through DBUS.

KDE's defaults for automount behavior changed recently. The merge ttps://invent.kde.org/plasma/plasma-desktop/-/merge_requests/974 in response to https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/549#note_436564 seem relevant. FWIW, my ~/.config/kded_device_automounterrc contains:

[Devices][/org/freedesktop/UDisks2/block_devices/sda3]
EverMounted=true
ForceLoginAutomount=true
Icon=drive-harddisk
LastNameSeen=Windows
LastSeenMounted=true

...

[General]
AutomountEnabled=true
AutomountOnLogin=false
AutomountOnPlugin=false
Comment 1 skierpage 2022-07-12 01:54:08 UTC
Good news: Fedora updated more bits of KDE, e.g.
   2022-06-23T00:32:04-0700 SUBDEBUG Upgrade: kf5-solid-5.94.0-1.fc36.x86_64
is now
   2022-07-11T00:28:08-0700 SUBDEBUG Upgrade: kf5-solid-5.96.0-1.fc36.x86_64

and upon reboot, after KDE login I once again got a prompt to mount my Windows drive. So this may be fixed in newer version.