"Apply system wide" writes only default keyboard layout

Bug #379474 reported by Sergey Nizovtsev
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Fix Released
Low
Michael Vogt

Bug Description

Ubuntu's gnome-keyboard-properties have an "Apply system wide" button, but it's unusable when two or more layouts have been specified. This bug can cause impossibility to input password in GDM, when password contains characters from another layout.

Steps to reproduce:
1. Open gnome-keyboard-properties
2. Add two or more layouts (for example, "en" and "ru")
3. Set "en" layout as default
4. Click "Apply system wide"
5. Run cat /etc/default/console-setup | egrep '(XKBLAYOUT|XKBVARIANT)'

Expected result:
XKBLAYOUT="us,ru"
XKBVARIANT=","

Actual result:
XKBLAYOUT="us"
XKBVARIANT=""

Affected versions:
gnome-control-center 1:2.26.0-0ubuntu3 (jaunty)
gnome-control-center 1:2.24.0.1-0ubuntu7.1 (intrepid)

P.S. This is a defect of 51_ubuntu_system_keyboard.patch. You can turn on debug output by replacing 0 to 1 in this line:
#if 1
 printf("model: %s\n", model);
 printf("layout: '%s'\n", layout);
 printf("variant: '%s'\n", variant);
 printf("options: '%s'\n", options);
#endif

Revision history for this message
Sergey Nizovtsev (snizovtsev) wrote :

I've reworked 51_ubuntu_system_keyboard.patch in order to support multiple layouts.
Packages can be found in my PPA:
https://launchpad.net/~snizovtsev/+archive/ppa

Revision history for this message
Alexey Balmashnov (a.balmashnov) wrote :

I can confirm this behavior. Indeed, users of our forum often report about inability to switch layout in the GDM login screen. Good, that the source of the problem was identified.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexey Nedilko (alexey.nedilko) wrote :

I confirm this too.

Changed in gnome-control-center (Ubuntu):
assignee: nobody → Michael Vogt (mvo)
importance: Undecided → Low
Michael Vogt (mvo)
Changed in gnome-control-center (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-control-center - 1:2.26.0-0ubuntu5

---------------
gnome-control-center (1:2.26.0-0ubuntu5) karmic; urgency=low

  * Fix system-wide changes of keyboard layouts (LP: #379474)

 -- Nizovtsev Sergey <email address hidden> Fri, 22 May 2009 22:48:54 +0400

Changed in gnome-control-center (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Trevor (tadcock-gmail) wrote :

Well it did affect me for several hours up to about 1800 hrs GMT yesterday but I seem to have found a way round it!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.