Bug 475470

Summary: LayoutLoopCount/spare layout does not work
Product: [Applications] systemsettings Reporter: Yaroslav <kde>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: butirsky, nate
Priority: NOR    
Version: 5.27.8   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Yaroslav 2023-10-11 14:47:21 UTC
SUMMARY
"Spare layouts" setting does not work. 
I do see that `systemsettings5` updates `~/.config/kxkbrc` file:

[$Version]
update_info=kxkb_variants.upd:split-variants,kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions

[Layout]
DisplayNames=,,
LayoutList=us,ru,ua
LayoutLoopCount=2
Options=grp:lalt_lshift_toggle
ResetOldOptions=true
ShowFlag=false
ShowLabel=true
ShowLayoutIndicator=true
ShowSingle=false
SwitchMode=Window
Use=true
VariantList=,,

But nothing happens after, I still see all three languages in my loop.

STEPS TO REPRODUCE
1. Open system settings
2. Add 3+ (us,ru,ua) layouts to your keyboard settings
3. Select "Spare layouts", and ensure that your "main layout count" set to 2.
4. At this step you should have two (us,ru) main layouts, and one (ua) additional.

OBSERVED RESULT
All three languages could be switched using the main shortcut.


EXPECTED RESULT
Only the first two (us,ru) must be available through the main shortcut.


SOFTWARE/OS VERSIONS
Fedora 39, KDE/Wayland
KDE 5.27.8
KDE frameworks 5.110.0
Qt 5.15.10
Linux 6.5.6
AMD Ryzen 5 PRO 5650U with Radeon Graphics

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-10-11 18:50:04 UTC

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