On 19 February 2016 at 13:10, Andreas Henriksson <andr...@fatal.se> wrote: > Hello Anton Zinoviev. > > Not sure about the cause or have any real solution, just adding some > additional information below (and CCing systemd maintainers). > > On Fri, Feb 19, 2016 at 03:54:24PM +0300, Anton Zinoviev wrote: >> clone 751955 -1 >> reassign -1 gnome-control-center >> retitle -1 Removes XKBMODEL and XKBOPTIONS from /etc/default/keyboard >> severity -1 serious >> thanks >> >> Hello, >> >> I can confirm that gnome-control-center removes XKBMODEL from >> /etc/default/keyboard. Steps to reproduce: >> >> 1. $ grep -q XKBMODEL /etc/default/keyboard && echo fine || echo broken >> -> fine >> 2. $ gnome-control-center >> 3. Go to "Region & Language" >> 4. Go to "Login Screen" >> 5. In the "Input Sources" section add some random keyboard layout >> 6. $ grep -q XKBMODEL /etc/default/keyboard && echo fine || echo broken >> -> broken >> >> The test is done on a regular Jessie system. The version of >> gnome-control-center >> is 1:3.14.2-3. > > Thanks for the testcase. The gnome-control-center program only calls out to > "localed" via dbus. In Debian it is patched with the following patch: > > http://sources.debian.net/src/systemd/215-17%2Bdeb8u3/debian/patches/Update-localed-to-use-the-Debian-config-files.patch/#L114 > > (And as you can see on that particular line XKBMODEL is parsed. Not sure > what resets it.)
Line 178 does when it is empty: http://sources.debian.net/src/systemd/215-17%2Bdeb8u3/debian/patches/Update-localed-to-use-the-Debian-config-files.patch/#L177 Not sure why though. -- Saludos, Felipe Sateler