Bug 435735

Summary: "Mount and open" button stops working after editing a device action in Device Action KCM
Product: [Plasma] plasmashell Reporter: Patrick Silva <bugseforuns>
Component: Disks & DevicesAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 5.27.80   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=387961
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2021-04-14 19:14:55 UTC
SUMMRY
This bug is a consequence of bug 387961

STEPS TO REPRODUCE
1. open System Settings > Removable Storage > Device Actions
2. double click on a device action available for your removable device (I double-clicked on "Open with File Manager" whose second column says "Storage Volume, Storage Drive, Storage Access")
3. edit its description (first text field) and click on "Ok" button
4. connect your removable device to usb port (I used a flash drive)
5. click on Disks & Devices applet in system tray
6. click on "Mount and open" button of your removable device available in Disks & Devices applet
 
OBSERVED RESULT
nothing happens

EXPECTED RESULT
"Mount and open" button should work

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 1 Nate Graham 2021-04-16 16:35:29 UTC
Bug is probably here: https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/devicenotifier/package/contents/ui/DeviceItem.qml#L127

The "Mount and open" action in the UI is hardcoded to open an action with the filename "test-predicate-openinwindow.desktop". Probably renaming the action in the KCM creates a new .desktop file with a different name, so the action doesn't work anymore.

I have no idea how to fix this though.