Bug 446278

Summary: 'Mount' device action does not work (or is unnecessary) with MTP/PTP device
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.27.5

Description Patrick Silva 2021-11-30 14:35:56 UTC
STEPS TO REPRODUCE
1. mke sure automatic device mounting is disabled in Removable Devices KCM
2. connect an Android device to usb port
3. set usb mode of your Android device to MTP or PTP (apparently the device is automatically mounted after this step even when automatic mounting is disabled in Removable Devices KCM. I do not know if this behavior is intentional with MTP/PTP devices or not)
4. click on Disks & Devices applet in system tray
5. click on your Android device and choose 'Mount' device action

OBSERVED RESULT
device actions list closes but 'Mount' option is still present if you click your device in Disks & Devices applet again.

EXPECTED RESULT
'Mount' device action should work, or be removed if it is unnecessary with MTP/PTP device

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Graphics Platform: X11
Comment 1 Bug Janitor Service 2023-04-28 02:45:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2874
Comment 2 Nate Graham 2023-04-28 15:20:04 UTC
Git commit 6ff844d5a7985fb93d3925f921b62fdc3a1fa4cc by Nate Graham.
Committed on 28/04/2023 at 15:19.
Pushed by ngraham into branch 'master'.

applets/devicenotifier: don't show "Mount" action for MTP devices

Mounting doesn't exist as a concept for these devices.
FIXED-IN: 5.27.5

M  +6    -6    applets/devicenotifier/package/contents/ui/DeviceItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/6ff844d5a7985fb93d3925f921b62fdc3a1fa4cc
Comment 3 Nate Graham 2023-04-28 15:22:00 UTC
Git commit 3cf0b77173c2b77a5cbc214d2b418638105a95a6 by Nate Graham.
Committed on 28/04/2023 at 15:21.
Pushed by ngraham into branch 'Plasma/5.27'.

applets/devicenotifier: don't show "Mount" action for MTP devices

Mounting doesn't exist as a concept for these devices.
FIXED-IN: 5.27.5


(cherry picked from commit 6ff844d5a7985fb93d3925f921b62fdc3a1fa4cc)

M  +6    -6    applets/devicenotifier/package/contents/ui/DeviceItem.qml

https://invent.kde.org/plasma/plasma-workspace/commit/3cf0b77173c2b77a5cbc214d2b418638105a95a6
Comment 4 Patrick Silva 2023-05-09 18:59:32 UTC
This bug persists after updating to Plasma 5.27.5.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland
Comment 5 Patrick Silva 2023-05-12 17:25:12 UTC
Humm, I have other 3 user accounts on my system and I can't reproduce the bug with them. Possibly the bug persists with my main user account due a consequence of the old bug 387961