I have tried to add an input source through gsettings
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 
'ru')]"
but it still produced the same result: text input remains at default layout.

Restarting the GNOME Shell fixes the issue and the 'ru' layout gets
added in /etc/default/keyboard configuration file: XKBLAYOUT=us,ru

This may explain why rearranging the order of input sources magically
fixes the bug: newly added input sources probably need to be put into
defaults once to be recognized later.

However, manually editing the keyboard configuration file does nothing.

What probably happens is that gnome-shell recognizes the added input
sources but 'forgets' 1) to send the appropriate command to XKB
(setxkbmap ru) whenever the switch shortcut is invoked; or 2) to
reconfigure the keyboard settings.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/1890875

Title:
  Keyboard won't switch its layout to a newly added second input source
  unless their order is rearranged

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-shell/+bug/1890875/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to