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 789794 - Switching user changes keyboard layout to first in the list, icon in top bar disagrees
Switching user changes keyboard layout to first in the list, icon in top bar ...
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-11-01 23:39 UTC by Ian
Modified: 2021-07-05 14:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ian 2017-11-01 23:39:27 UTC
Fedora 26, GNOME 3.24.3

I have two keyboard layouts: 1. UK and 2. US. When switching user session (Ctrl-Alt-N) the layout always returns to layout (1) regardless of what was previously in use. In contrast and confusingly the icon in the top bar displays the last used layout even though it may now not be in use. So:

Switch to user 1: Ctrl-Alt-1. Change layout from UK to US. All fine, icon in top bar says US

Switch to user 2: Ctrl-Alt-2

Switch back to user 1: Ctrl-Alt-1. Layout in top bar shows US, typing reveals keyboard is in fact on UK. Switch to UK layout, then back to US fixes it.

So I guess where the bug is depends on intended behaviour:

* If intended behaviour is always to switch to first layout when switching user then the icon should update: so the bug is with the layout icon
* If the last-used keyboard layout should be preseved when switching user then the  bug is in whatever restores keyboard layout
Comment 1 Jonas Ådahl 2017-11-02 02:27:01 UTC
Is the layout same in the Shell UI and in clients? Does this happen only when on Wayland? If so, does applying the second patch in bug 789300 help?
Comment 2 Ian 2017-11-03 00:55:46 UTC
Confirmed only happens under Wayland, I will try the patch next.

I'm not familiar with the terminology in your first question: shell UI versus clients. Do you mean is the same layout in effect in GNOME shell versus any applications like LibreOffice (for example)?
Comment 3 Jonas Ådahl 2017-11-03 08:49:35 UTC
(In reply to Ian from comment #2)
> Confirmed only happens under Wayland, I will try the patch next.
> 
> I'm not familiar with the terminology in your first question: shell UI
> versus clients. Do you mean is the same layout in effect in GNOME shell
> versus any applications like LibreOffice (for example)?

Right. For example, is it the same in the search field in the GNOME Shell overview and in for example gedit.
Comment 4 Ian 2017-11-07 01:26:45 UTC
Yes - it's the same layout in both.

To try the patch I see I will have to try and build Wayland - a first for me, this may take some time.
Comment 5 GNOME Infrastructure Team 2021-07-05 14:29:31 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.