After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780039 - gnome-shell always uses "us" keyboard layout on first login despite correct input sources being set by gnome-settings-daemon
gnome-shell always uses "us" keyboard layout on first login despite correct i...
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.22.x
Other Linux
: Normal major
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 784651 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-03-14 16:32 UTC by Raphael Hertzog
Modified: 2021-07-05 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Raphael Hertzog 2017-03-14 16:32:50 UTC
On a fresh installation of Debian Stretch with GNOME 3.22 configured in debian-installer with a French locale and a French keyboard layout, when I login for the first time with my new user (hence there's no ~/.config/dconf/ yet) gnome-shell is started with the "us" keyboard layout active (instead of the expected "fr" one).

But the keyboard layout menu shows "French" first and "English (US)" second (as does gnome-control-center) and the correct value is stored in dconf in org.gnome.desktop.input-sources.sources. localed is also reporting "fr" as the recommended keyboard layout.

$ dconf dump /org/gnome/desktop/input-sources/
[/]
sources=[('xkb', 'fr+latin9'), ('xkb', 'us')]
xkb-options=@as []
$ localectl status
   System Locale: LANG=fr_FR.UTF-8
       VC Keymap: n/a
      X11 Layout: fr
       X11 Model: pc105
     X11 Variant: latin9

A simple gnome-shell restart (with ALT+F2 r) is enough to get the French keyboard layout active by default. In Debian, we are not using gnome-initial-setup so the gsettings for input-sources is set by gnome-settings-daemon on first login.

I'm not sure how this can be explained... maybe a concurrency issue between gnome-shell and gnome-settings-daemon where gnome-shell picks the "us" layout by default because gnome-settings-daemon has not yet set the correct value? And then when the good value is set, it stays on the current keyboard layout instead of switching to the default one?

I filed this on gnome-shell because it seems the most likely culprit here but it might be that this needs to be fixed somewhere else. Feel free to move around as appropriate.

NB: This also affects very badly Debian live images: the user configuration does not persist across reboots and gnome-shell is thus always started with the undesired keyboard layout.
Comment 1 Rui Matos 2017-07-07 14:36:01 UTC
*** Bug 784651 has been marked as a duplicate of this bug. ***
Comment 2 Laurent Bigonville 2017-07-07 15:02:11 UTC
The other question is why is the English layout is added at all by default
Comment 3 Laurent Bigonville 2017-07-07 17:13:46 UTC
The rational of the "us" layout is actually explained in bug #697597
Comment 4 GNOME Infrastructure Team 2021-07-05 14:14:19 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.