desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #92369
[Bug 1240198] Re: [SRU]Wrong keyboard layout active after booting into desktop
I've been hitting this problem for several weeks and tearing my hair
over it. (Basically, I'm setting up a semi-automated install environment
for rolling out about 250 Ubuntu 14.04 workstations - so fiddling about
with GUI settings on each machine wasn't an option.)
The variant of the problem which I experienced was that although
/etc/default/keyboard specifies gb layout, all the desktops except Unity
defaulted to US layout, and "ibus engine" reported "xkb:us::eng".
In my case, the following steps appear to have fixed the problem:
1) I edited
/usr/share/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml, and set
the value for "use-system-keyboard-layout" to "true". I then ran "glib-
compile-schemas /usr/share/glib-2.0/schemas". After this, all the
desktops defaulted to GB layout - but "ibus engine" still reported
"xkb:us::eng".
2) I had noticed in passing that when I ran "ibus list-engine", there
wasn't a setting for "xkb:gb::eng" - only "xkb:gb:extd:eng", which
didn't quite match the definition in /etc/default/keyboard (there was
also one for the dvorak keyboard.) So I tried editing
/usr/share/ibus/component/simple.xml, duplicating the engine definition
for "xkb:gb:extd:eng" as "xkb:gb::eng", and then running "ibus restart".
After this, "ibus engine" reported that it was using "xkb:gb::eng".
I've spent so long on this and run down so many false trails that I
don't fully believe it yet - I'll reinstall the test box from scratch
and apply the above again a few more times, then I'll report back.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ibus in Ubuntu.
https://bugs.launchpad.net/bugs/1240198
Title:
[SRU]Wrong keyboard layout active after booting into desktop
Status in ibus package in Ubuntu:
Fix Released
Status in indicator-keyboard package in Ubuntu:
Won't Fix
Status in ibus source package in Trusty:
Fix Committed
Status in indicator-keyboard source package in Trusty:
Won't Fix
Bug description:
[Impact]
When first boot into Unity desktop, English keyboard layout is active
while all other parts of the system language settings are set to
another language (e.g. German).
The bug is properly addressed in newer upstream releases in Vivid, but
the changes is too intrusive and not suitable for being back ported in
SRU. And changing the default to use system keyboard layout solves the
problem.
[Test Case]
1. Set the system language to something other than English, e.g. German.
2. Create a new user, log in to the Unity desktop of the new user.
3. Check the keyboard layout, it should be German instead of English.
[Regression Potential]
Since this changes the default value of the keyboard layout settings
by using system defined as default, it avoids using ibus's built-in
keyboard layout related functionality, so that this could be a
regression for users rely on this certain behavior (e.g. use English
keyboard while want to keep the system language settings to German),
but such behavior is not expected for normal usage.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1240198/+subscriptions