Bug 394293

Summary: Option to disable an action
Product: [Frameworks and Libraries] frameworks-solid Reporter: Josef Kufner <jk>
Component: generalAssignee: Lukáš Tinkl <lukas>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Josef Kufner 2018-05-15 20:47:23 UTC
I have a script to download photos from a SD card and I defined an action on removable storage device, so I can execute it from a "device connected" notification. However, there are another two actions in the menu which have almost the same label as my script and I don't like them. How can I remove them?

As described in the documentation (https://docs.kde.org/stable5/en/kde-workspace/kcontrol/solid-actions/index.html), the system-provided actions cannot be delited. That makes sense. But I really mis an option to disable them.

Feature request: Please add "Disable"/"Enable" button next to "Add" and "Remove" buttons. It should create a user-specific override which would disable the system-provided action.
Comment 1 Josef Kufner 2018-05-15 20:53:17 UTC
Implementation details: The override can be created simply by a desktop file in ~/.local/share/solid/actions like this:

$ cat ~/.local/share/solid/actions/digikam-opencamera.desktop
[Desktop Entry]
X-KDE-Solid-Predicate=[ false ]
Type=Service
Actions=open;

However, disabling a user-specific action this way will cause loss of the predicate. So it would be much better to introduce a bollean option X-KDE-Solid-Enabled (or something like that).
Comment 2 Justin Zobel 2022-11-21 08:21:50 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-12-06 05:18:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-12-21 05:20:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!