| Summary: | Keyboard layout switching breaks if the first layout matches the system layout | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Janne Grunau <janne-kde> |
| Component: | kcm_keyboard | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | butirsky, dev, duha.bugs, natalie_clarius, perk11 |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.3 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Janne Grunau
2025-03-23 17:33:53 UTC
After first trying to reproduce this, I could partially. I was only able to switch to my non system language with the shortcut. The applet did work though, including clicking on it.
After resetting my settings to default and adding the languages again, I can no longer reproduce.
The settings I tried to reproduce with:
localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp
cat ~/.config/kxkbrc
[$Version]
update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions,kxkb_variants.upd:split-variants
[Layout]
DisplayNames=,
LayoutList=us,de
Use=true
VariantList=,
What [$Version] do you get in your ~/.config/kxkbrc ?
(In reply to duha.bugs from comment #1) > > What [$Version] do you get in your ~/.config/kxkbrc ? none. The reported contents of ~/.config/kxkbrc are complete. It was always just the "Layout" section. In addition "Options=" in the Layout section have no effect as well in the broken system layout is first case. The issue does *not* reproduce on my desktop with identical software. Settings there: $localectl System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: (unset) $ cat ~/.config/kxkbrc [$Version] update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions,kxkb_variants.upd:split-variants [Layout] DisplayNames=,, LayoutList=us,eu,de Options=caps:ctrl_modifier ResetOldOptions=true Use=true VariantList=euro,,nodeadkeys I also have this issue. On boot layout switching doesn't work until I go to and adjust some settings, I haven't quite figure out which setting makes it work again. It started happening around the time of upgrade to 6.3. Contents of ~/.config/kxkbrc: [$Version] update_info=kxkb_variants.upd:split-variants,kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions [Layout] DisplayNames=, LayoutList=us,ru LayoutLoopCount=-1 Model=pc101 Options=grp:caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp,altwin:meta_win ResetOldOptions=true ShowFlag=true ShowLabel=false ShowLayoutIndicator=true ShowSingle=false SwitchMode=Global Use=true VariantList=, (In reply to Janne Grunau from comment #2) > The issue does *not* reproduce on my desktop with identical software. > Settings there: > $localectl > System Locale: LANG=en_US.UTF-8 > VC Keymap: us > X11 Layout: (unset) > $ cat ~/.config/kxkbrc > [$Version] > update_info=kxkb.upd:remove-empty-lists,kxkb.upd:add-back-resetoptions, > kxkb_variants.upd:split-variants > > [Layout] > DisplayNames=,, > LayoutList=us,eu,de > Options=caps:ctrl_modifier > ResetOldOptions=true > Use=true > VariantList=euro,,nodeadkeys The original bug is likely due to https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/112, which is fixed in xkeyboard-config-2.44. You cannot reproduce because you do not have the same config: your `model` is not set, so it will default to `pc104`. Doesn't reproduce anymore on on Fedora 42 with KDE Plasma 6.3.5 / Frameworks 6.14.0 and xkeyboard-config-2.44-1.fc42 |