Bug 497726

Summary: Changing global shortcut script doesn't change it
Product: [Applications] systemsettings Reporter: Damglador <vse.stopchanskyi>
Component: kcm_keysAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: duha.bugs, fanzhuyifan, kde, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Damglador 2024-12-20 20:04:53 UTC
SUMMARY
Apply doesn't save changes in script of a custom global shortcut action. Persisted from Plasma 6.1

STEPS TO REPRODUCE
1. Create a custom shortcut with a script. For example command1
2. Apply it, check if it works (error "Couldn't find command1" counts)
3. Go back to this global shortcut and try to edit it. For example change the script to command2
4. Click "Save", check if the error message displays command2 instead of command1

OBSERVED RESULT
1. Script isn't updated, the title of the global shortcut (that is above the shortcuts list) isn't changed until you go to the page of another shortcut and go back to the one you changed. 
2. The shortcut will not use the new script until you restart the system, or just delete the old one and create a new one with the changes. 
3. The "Apply" button isn't activated (I guess "Save" should also apply the changes)

EXPECTED RESULT
If I change a script of a shortcut, it should apply the changes right after I press "Save", or activate "Apply" button and apply changes after I hit it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2024-12-22 13:15:27 UTC
note to self: kglobalacceld needs to reload the service-based shortcuts on database change
Comment 2 fanzhuyifan 2025-01-12 00:54:09 UTC

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