Comment 16 for bug 1762952

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I took the following steps:

* Installed Ubuntu 17.10.1
* Added an extra keyboard layout
* Updated the packages
* Rebooted

No additional layout switch shortcut so far.

Then I run "update-manager -d", and when it was installing the new and upgraded packages, a window for keybord configuration popped up and I was prompted to select method for switching between "setting for national and latin" (see attached image). Alt+Shift was pre-selected. I found no way to skip that setting, and clicked the "Forward" button. Result:

$ cat /etc/default/keyboard
XKBLAYOUT="se,us"
XKBVARIANT=","
BACKSPACE="guess"
XKBMODEL="pc105"
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

So there it is. And at first login those XKBOPTIONS values were imported by dconf (as expected).

I still can't tell which package is the culprit. Changed to ubuntu-release-upgrader for now, since it's probably closer to the truth than gnome-shell.

In any case the upgrade behavior in this respect needs to be reconsidered, at least for desktop upgrades. No program should make assumptions and gratuitously set XKBOPTIONS in /etc/default/keyboard, especially since g-c-c does not offer a way to modify it later. (Is there a reason for the upgrader to mess with keyboard configuration at all?)