Bug 497726 - Changing global shortcut script doesn't change it
Summary: Changing global shortcut script doesn't change it
Status: RESOLVED DUPLICATE of bug 487941
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (show other bugs)
Version: 6.2.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-20 20:04 UTC by Damglador
Modified: 2025-01-12 00:54 UTC (History)
5 users (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 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 ***