Bug 435735 - "Mount and open" button stops working after editing a device action in Device Action KCM
Summary: "Mount and open" button stops working after editing a device action in Device...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 5.27.80
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-14 19:14 UTC by Patrick Silva
Modified: 2023-11-18 21:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.