Bug 500856

Summary: Changing command in custom global shortcut does nothing
Product: [Frameworks and Libraries] frameworks-kglobalaccel Reporter: Miroslav Jarý <mira.jary>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan, nicolas.fella
Priority: NOR    
Version First Reported In: 6.11.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Miroslav Jarý 2025-02-28 09:03:47 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
When you create a custom global command shortcut, and then edit the command it executes, even after saving the original command is executed when the shortcut is pressed.

STEPS TO REPRODUCE
1. Create new "Command or script" shortcut
2. Enter some command (e.g. `qdbus6 org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness 50`)
3. Save changes
4. Assign a keyboard shortcut to this item
5. Confirm it is working properly
6. Edit the shortcut command via the "pencil" icon; change the command item to something else
7. Save changes
8. Press the keyboard shortcut - the original command from step 2 executes instead of the one set in step 6

OBSERVED RESULT
When pressing the keys, the original command, which was set during the shortcut creation executes

EXPECTED RESULT
When pressing the keys, the new, updated command will execute

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 15,3 GiB of RAM
Graphics Processor 1: Mesa Intel® Graphics
Graphics Processor 2: llvmpipe
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8
Comment 1 Nicolas Fella 2025-02-28 11:29:18 UTC
It will use the new command after a restart. See https://bugs.kde.org/show_bug.cgi?id=487941

*** This bug has been marked as a duplicate of bug 487941 ***