[Bug 1125814] New: [Build 20190125] YaST2 keyboard module applies settings even when Cancel button is pressed
http://bugzilla.suse.com/show_bug.cgi?id=1125814 Bug ID: 1125814 Summary: [Build 20190125] YaST2 keyboard module applies settings even when Cancel button is pressed Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: riafarov@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 797088 --> http://bugzilla.suse.com/attachment.cgi?id=797088&action=edit YaST logs ## Steps to reproduce: 1. Change X11 keyboard setting (e.g. run setxkbmap -layout us,ru) 2. Run yast2 keyboard module 3. English US is preselected 4. Press Cancel button 5. English US is set as a keyboard layout, so settings from step 1) are overwritten. Please, find logs in the attachment. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1125814
http://bugzilla.suse.com/show_bug.cgi?id=1125814#c1
David Diaz
2019-02-19 09:56:19 <1> linux-9x6v(7484) [Ruby] modules/Keyboard.rb:515 Setting keyboard to: <spanish>
but the keyboard layout still being English US. In fact, when the "OK" button is pressed, is expected to find something like follow in the logs
2019-02-19 10:00:53 <1> linux-9x6v(11065) [Ruby] modules/Keyboard.rb:879 Making keyboard settings persistent: command /usr/bin/localectl set-keymap es end with {"exit"=>0, "stderr"=>"", "stdout"=>""}
Rodion, could you give us more information about the system? Thank you! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1125814
http://bugzilla.suse.com/show_bug.cgi?id=1125814#c2
--- Comment #2 from Rodion Iafarov
http://bugzilla.suse.com/show_bug.cgi?id=1125814
http://bugzilla.suse.com/show_bug.cgi?id=1125814#c3
Rodion Iafarov
http://bugzilla.suse.com/show_bug.cgi?id=1125814
http://bugzilla.suse.com/show_bug.cgi?id=1125814#c4
David Diaz
(In reply to Rodion Iafarov from comment #2) I have same version as you've mentioned. I have this problem on my laptop, where I have i3wm installed, so will try to reproduce it in some simpler env.
What I've assumed that in case of pressing cancel there should be no log lines like: 2019-02-18 17:08:41 <1> ri-laptop(31225) [Ruby] modules/Keyboard.rb:1401 Setting X11 keyboard to: <english-us> 2019-02-18 17:08:41 <1> ri-laptop(31225) [Ruby] modules/Keyboard.rb:1402 Setting X11 keyboard: /usr/bin/setxkbmap -layout us -model microsoftpro -option terminate:ctrl_alt_bksp
And as from the code: https://github.com/yast/yast-country/blob/master/keyboard/src/modules/ Keyboard.rb#L1400 it actually executes those commands, which should not be the case. But let me update issue with steps for clean installation.
I am not pretty sure right now, but I guess that this is being executed in order to allow to use the "Test" input field. Anyway, following your detailed steps I was able to reproduce it in a fresh openSUSE TW installation using ice-wm :( So, I am going to track it in our Trello board. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1125814
David Diaz
http://bugzilla.suse.com/show_bug.cgi?id=1125814
Rodion Iafarov
http://bugzilla.suse.com/show_bug.cgi?id=1125814
http://bugzilla.suse.com/show_bug.cgi?id=1125814#c5
--- Comment #5 from Rodion Iafarov
Thank you so much, Rodion.
Regarding to
(In reply to Rodion Iafarov from comment #2) I have same version as you've mentioned. I have this problem on my laptop, where I have i3wm installed, so will try to reproduce it in some simpler env.
What I've assumed that in case of pressing cancel there should be no log lines like: 2019-02-18 17:08:41 <1> ri-laptop(31225) [Ruby] modules/Keyboard.rb:1401 Setting X11 keyboard to: <english-us> 2019-02-18 17:08:41 <1> ri-laptop(31225) [Ruby] modules/Keyboard.rb:1402 Setting X11 keyboard: /usr/bin/setxkbmap -layout us -model microsoftpro -option terminate:ctrl_alt_bksp
And as from the code: https://github.com/yast/yast-country/blob/master/keyboard/src/modules/ Keyboard.rb#L1400 it actually executes those commands, which should not be the case. But let me update issue with steps for clean installation.
I am not pretty sure right now, but I guess that this is being executed in order to allow to use the "Test" input field.
Anyway, following your detailed steps I was able to reproduce it in a fresh openSUSE TW installation using ice-wm :(
So, I am going to track it in our Trello board.
Thanks!
I've adjusted severity and bug title as per our findings. Thanks a lot! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1125814
https://bugzilla.suse.com/show_bug.cgi?id=1125814#c6
Stefan Hundhammer
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com