Bug 488278

Summary: Removed layouts persist in the kglobalshortcutsrc (Global Shortcuts) settings file, can be configured but can't be switched to
Product: [Applications] systemsettings Reporter: ratijas <me>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: butirsky, evgeniyharchenko.dev, natalie_clarius, nate
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2024-06-09 22:53:52 UTC
SUMMARY
Removed layouts persist in the kglobalshortcutsrc file, allowing user to keep configuring their «Switch keyboard layout to %layout_name%» key sequence in the Shortcuts KCM, but activating that shortcut does nothing.

STEPS TO REPRODUCE
1. Open Keyboard KCM, navigate to the Layouts tab.
2. Check the Configure Layouts check box.
3. Add some layout to the table.
4. Double click on the Shortcut column for the new layout, input a key sequence, and click «Reassign shortcut».
5. Click Apply.
6. Remove the new layout.
7. Click Apply again.
8. Open Shortcuts KCM, navigate to the Keyboard Layout Switcher.

OBSERVED RESULT
The shortcut entry for new/removed layout is there.

EXPECTED RESULT
The entries for the removed layouts should not exist.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: git-master
KDE Frameworks Version: git-master
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION

The BUG 477188 doesn't seem to be related.