Bug 493752

Summary: Can still futilely interact with sidebar items in "pending deletion" state
Product: [Applications] systemsettings Reporter: reports_go_brrr <goodaqua>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: 4wy78uwh, duha.bugs, fanzhuyifan, kde, kde, kdedev, nate
Priority: LO Keywords: usability
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 6.6.0
Sentry Crash Report:
Attachments: Showcase

Description reports_go_brrr 2024-09-27 20:51:57 UTC
Created attachment 174155 [details]
Showcase

SUMMARY
I can't reset shortcuts and .desktop file by removing app without "Apply" from "Shortcuts" Settings and adding it again (with Apply).
It is useful in case of #493220 bug, which is about only automatic update of .desktop file for shortcuts, not manual as in this bug.
Works under X11 and Wayland.

STEPS TO REPRODUCE
1. Go to Settings
2. Search for "Shortcuts"
3. Go into it and "Add New" > "Application..."
4. Choose any you want and which is not added already
5. Make any keybind
6. Move to app in the list of apps and remove it. Do not Apply settings.
7. Then add the same app again.

OBSERVED RESULT
The .desktop file nor shortcuts are still the same.

EXPECTED RESULT
It should reset .desktop file and shortcuts too.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Vanilla KDE Plasma, vanilla EndeavourOS.
© Art by axo1otl - "Scarlet Tree"
Comment 1 TraceyC 2024-09-27 23:25:48 UTC Comment hidden (spam)
Comment 2 TraceyC 2024-09-27 23:34:02 UTC
My apologies, the last reply was meant for a different bug report.

I can confirm the reported behavior on Plasma 6.1.5 as well as git-master
After deleting the application from shortcuts, the previously configured shortcut remains in the right hand pane, as shown in the screen recording
Comment 3 Nate Graham 2024-09-30 20:55:17 UTC
Before you hit the Apply button, the thing you remove is in somewhat of a limbo state. Trying to interact with it, overwrite it, etc aren't really valid behaviors.

We could try to prevent you from re-adding it or interacting with it while it's in this limbo state. The effort to reward ratio may be low, though.
Comment 4 Bug Janitor Service 2025-10-31 00:16:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3268
Comment 5 Nate Graham 2025-11-21 19:19:10 UTC
Git commit 7b89195156282c010760f89066e46639f467ecbe by Nate Graham.
Committed on 21/11/2025 at 18:22.
Pushed by ngraham into branch 'master'.

kcms/keys: disable main view for items in pending deletion state

You shouldn't be able to edit the details of an item you've told the KCM
to delete; that doesn't make sense.

Requires https://invent.kde.org/frameworks/qqc2-desktop-style/-/merge_requests/491
FIXED-IN: 6.6.0

M  +60   -25   kcms/keys/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/7b89195156282c010760f89066e46639f467ecbe