Bug 1004506

Summary: They keyboard language is not set correctly when using Gnome
Product: [openSUSE] openSUSE Distribution Reporter: Knut Alejandro Anderssen González <kanderssen>
Component: YaST2Assignee: E-mail List <gnome-bugs>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: dimstar, fezhang, kanderssen, sreeves
Version: Leap 42.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 logs

Description Knut Alejandro Anderssen González 2016-10-13 12:24:53 UTC
Could be a duplicate of this one https://bugzilla.suse.com/show_bug.cgi?id=1000565 but I still have the issue.

During installation I choose Spanish keyboard but after first boot, it users English keyboard instead of Spanish one.

If I set KEYTABLE as "es" or "Spanish" in /etc/sysconfig/keyboard it works.
Comment 1 Ancor Gonzalez Sosa 2016-10-13 14:28:50 UTC
Knut, I cannot believe I have to tell you this: please attach YaST logs :-)
Comment 2 Knut Alejandro Anderssen González 2016-10-13 16:02:31 UTC
Created attachment 697248 [details]
YaST2 logs
Comment 3 Ancor Gonzalez Sosa 2016-10-14 08:40:37 UTC
(In reply to Knut Alejandro Anderssen González from comment #2)
> Created attachment 697248 [details]
> YaST2 logs

2016-10-13 16:23:25 <3> install(3345) [bash] ShellCommand.cc(shellcommand):78 Failed to set keymap: Failed to execute program org.freedesktop.locale1: Success

2016-10-13 16:23:25 <3> install(3345) [Ruby] modules/Keyboard.rb:905 X11 configuration not written. Failed to execute '/usr/bin/localectl --no-convert set-x11-keymap es pc105 basic terminate:ctrl_alt_bksp'

Too bad we do not log the exact error. But I will try to reproduce it (and to improve logging in the process).
Comment 4 Ancor Gonzalez Sosa 2016-10-14 12:55:22 UTC
In my opinion this is a GNOME bug. I will explain why. 

I did 2 different installations of Leap42.2 Beta3. One with KDE and another one with GNOME. None of them configured to perform automatic login of the user (to allow me to test the result before the desktop environment comes into play).

At the end of the installation, both system look correct from the localectl point of view. That is, if you run localectl you will get:
    VC KEYMAP: es
   X11 Layout: es
    X11 Model: pc105
  X11 Options: terminate:ctrl_alt_bksp

And X11 configuration is also fine in both systems. That is:
 Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "es"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
 EndSection

In that regard, the error mentioned in comment#3 is irrelevant. Curious enough it only happened to me in the GNOME installation and not in the KDE one. Anyways, as mentioned, system configuration looks fine (and identical) after reboot in both systems.

In the KDE system, I logged into IceWM and everything was perfect. Same when I logged into KDE.

In the GNOME system, I logged into IceWM and everythig was again perfect. But when I logged into GNOME the keyboard selector in the top bar had two options: "es" and "en". The surprising part is that "en" was selected, resulting in an English keyboard layout.

I don't know where is getting that default GNOME, but looks wrong to me.
Comment 5 Tomáš Chvátal 2018-04-17 13:45:02 UTC
This is automated batch bugzilla cleanup.

The openSUSE 42.2 changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or you can still observe it under openSUSE Leap 15.0, please
feel free to reopen this bug against that version (see the "Version"
component in the bug fields), or alternatively open
a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime