Bug#815244: gnome-control-center: Doesn't work properly with spaces in the values of XKB{LAYOUT, VARIANT, OPTIONS} in /etc/default/keyboard

Anton Zinoviev anton at lml.bas.bg
Sat Feb 20 11:48:07 UTC 2016


Package: gnome-control-center
Version: 1:3.14.2-3
Severity: normal

gnome-control-center doesn't work properly when the values of
XKBLAYOUT, XKBVARIANT or XKBOPTIONS contain spaces.  Steps to
reproduce:

1. $ sed 's|^ *XKBLAYOUT=.*|XKBLAYOUT="us, fr"|' /etc/default/keyboard >/tmp/keyboard.tmp
2. $ sudo mv /tmp/keyboard.tmp /etc/default/keyboard
3. $ grep XKBLAYOUT /etc/default/keyboard
--> XKBLAYOUT="us, fr"
4. $ gnome-control-center
5. Go to "Region & Language"
6. Go to "Login Screen"
7. In the "Input Sources" section add Chinese keyboard layout
8. $ grep XKBLAYOUT /etc/default/keyboard
--> XKBLAYOUT="us,cn"

That is, the French layout is removed.

Let me add that systemd seems to work correctly with spaces in the
values of the variables.  For example if /etc/default/keyboard
contains an assignment

SOMEOPTION='option with spaces'

then after gnome-control-center modifies the file, we will obtain

SOMEOPTION="option with spaces"

Anton Zinoviev


-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=bg_BG.utf8, LC_CTYPE=bg_BG.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-control-center depends on:
ii  accountsservice            0.6.37-3+b1
ii  apg                        2.2.3.dfsg.1-2
ii  colord                     1.2.1-1+b2
ii  desktop-file-utils         0.22-1
ii  gnome-control-center-data  1:3.14.2-3
ii  gnome-desktop3-data        3.14.1-1
ii  gnome-icon-theme           3.12.0-1
ii  gnome-icon-theme-symbolic  3.12.0-1
ii  gnome-settings-daemon      3.14.2-3
ii  gsettings-desktop-schemas  3.14.1-1
ii  libaccountsservice0        0.6.37-3+b1
ii  libatk1.0-0                2.14.0-1
ii  libc6                      2.19-18+deb8u2
ii  libcairo-gobject2          1.14.0-2.1
ii  libcairo2                  1.14.0-2.1
ii  libcanberra-gtk3-0         0.30-2.1
ii  libcanberra0               0.30-2.1
ii  libcheese-gtk23            3.14.1-2
ii  libcheese7                 3.14.1-2
ii  libclutter-1.0-0           1.20.0-1
ii  libclutter-gtk-1.0-0       1.6.0-1
ii  libcolord-gtk1             0.1.25-1.1+b1
ii  libcolord2                 1.2.1-1+b2
ii  libcups2                   1.7.5-11+deb8u1
ii  libdbus-glib-1-2           0.102-1
ii  libfontconfig1             2.11.0-6.3
ii  libgdk-pixbuf2.0-0         2.31.1-2+deb8u4
ii  libgl1-mesa-glx [libgl1]   10.3.2-1+deb8u1
ii  libglib2.0-0               2.42.1-1
ii  libgnome-bluetooth13       3.14.0-2
ii  libgnome-desktop-3-10      3.14.1-1
ii  libgoa-1.0-0b              3.14.2-1
ii  libgoa-backend-1.0-1       3.14.2-1
ii  libgrilo-0.2-1             0.2.11-2
ii  libgtk-3-0                 3.14.5-1+deb8u1
ii  libgtop2-7                 2.28.5-2+b1
ii  libibus-1.0-5              1.5.9-1
ii  libkrb5-3                  1.12.1+dfsg-19+deb8u2
ii  libmm-glib0                1.4.0-1
ii  libnm-glib-vpn1            0.9.10.0-7
ii  libnm-glib4                0.9.10.0-7
ii  libnm-gtk0                 0.9.10.0-2
ii  libnm-util2                0.9.10.0-7
ii  libpango-1.0-0             1.36.8-3
ii  libpangocairo-1.0-0        1.36.8-3
ii  libpolkit-gobject-1-0      0.105-8
ii  libpulse-mainloop-glib0    5.0-13
ii  libpulse0                  5.0-13
ii  libpwquality1              1.2.3-1
ii  libsmbclient               2:4.1.17+dfsg-2+deb8u1
ii  libsoup2.4-1               2.48.0-1
ii  libupower-glib3            0.99.1-3.2
ii  libwacom2                  0.8-1
ii  libx11-6                   2:1.6.2-3
ii  libxi6                     2:1.7.4-1+b2
ii  libxml2                    2.9.1+dfsg1-5+deb8u1

Versions of packages gnome-control-center recommends:
ii  cracklib-runtime       2.9.2-1
ii  cups-pk-helper         0.2.5-2+b1
ii  gkbd-capplet           3.6.0-1
ii  gnome-online-accounts  3.14.2-1
ii  gnome-user-guide       3.14.1-1
ii  gnome-user-share       3.14.0-2
ii  iso-codes              3.57-1
ii  libnss-myhostname      0.3-9
ii  mesa-utils             8.2.0-1
ii  mousetweaks            3.12.0-1
ii  network-manager-gnome  0.9.10.0-2
ii  policykit-1-gnome      0.105-2
ii  realmd                 0.15.1-1+b2
ii  rygel                  0.24.2-1+b1
ii  rygel-tracker          0.24.2-1+b1
ii  system-config-printer  1.4.6-1

Versions of packages gnome-control-center suggests:
ii  gstreamer1.0-pulseaudio  1.4.4-2
pn  libcanberra-gtk-module   <none>
ii  libcanberra-gtk3-module  0.30-2.1
ii  x11-xserver-utils        7.7+3+b1

-- no debconf information



More information about the pkg-gnome-maintainers mailing list