Bug 725470

Summary: Yast should not touch the configuration of the keyboard
Product: [openSUSE] openSUSE 12.1 Reporter: Lionel Dricot <ploum>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P4 - Low CC: tgoettlicher
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yastlogs, as requested

Description Lionel Dricot 2011-10-20 12:39:17 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0

Use a good desktop (mine is GNOME) and configure it with your keyboard layout of choice (mine is French Bépo).

Now, open Yast and click on "System Keyboard Layout".

Without doing anything, Yast changed your keyboard layout to the one he thinks you should use. (And, given bug #725468, it's not the layout I want to use).

But, worst: my desktop still think I'm in the correct layout.

To recover my layout I have to switch to a random layout then select back my real keyboard layout.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.


Expected Results:  
Yast, please don't  touch anything. Leave my keyboard alone, please !
Comment 1 Jiří Suchomel 2011-10-25 07:38:59 UTC
Please attach YaST2 log files:
http://en.opensuse.org/openSUSE:Bugreport_YaST
Comment 2 Lars Müller 2011-11-16 10:03:24 UTC
Unfortunately the requested information was not provided.  Instead Lionel published https://plus.google.com/118165493193465533929/posts/MvnKADstKdW and added this defect to the most annoying bugs.

@Lionel: As long as you're not providing the requested information I suggest to remove the recently added lines from http://en.opensuse.org/openSUSE:Most_annoying_bugs_12.1

If you're not able to provide the requested information and to cleanup the most annoying bugs in 12.1 page again we have to close this issue with resolution resolved/ no response.
Comment 3 Lionel Dricot 2011-11-16 10:30:00 UTC
Created attachment 462333 [details]
yastlogs, as requested

Sorry for being late
Comment 4 Lionel Dricot 2011-11-16 10:31:03 UTC
for the records, I reproduced the issue before sending the log. It should be around 11:20, on November 16th 2011.
Comment 5 Lionel Dricot 2011-11-16 10:32:31 UTC
BTW, I don't understand what you hope to find it the logs. It seems straightforward to me than, when you launch Yast keyboard tool, it sets the requested keyboard.
Comment 6 Jiří Suchomel 2011-11-16 10:39:19 UTC
Well, it really sets the requested keyboard, but my impression from your report was it sets something you do not want. 

So what's wrong with setting the requested keyboard?
Comment 7 Lionel Dricot 2011-11-16 11:23:29 UTC
Jiri > My keyboard layout isn't in the list. If I open Yast, it will set one of the keyboard in Yast, even if I don't "apply".

Worst, GNOME will still think that my real layout is applied, which brings you in an awkward situation where GNOME displays one layout but another one is used.
Comment 8 Jiří Suchomel 2011-11-16 12:38:54 UTC
OK, true. YaST sets the keyboard layout found in config file (YAST_KEYBOARD of /etc/sysconfig/keyboard) right on start.

Hard to tell if it is incorrect: it has to be present there from the start so the Test entry can work.

I understand that it causes extra problem in your case, when you have your own keyboard layout. First, we do not cover all keyboard layouts, like you reported elsewhere. I hope I can address this in feature 309487 and find a good solution for 12.2.

Second, it's probably wrong to even call YaST keyboard in your desktop environment, because it does not have knowledge of its settings. (I guess the new keyboard layout (french) would work after you'd restart your X session.) 
YaST's primary task is during installation and later it's recommended to use your own desktop setting tool for keyboard. We've actually had it already removed from desktop earlier, but some users demanded it back.


So. For now, I think the correct advice is to not use YaST keyboard in desktop environment. The other issues should hopefully get addressed in https://features.opensuse.org/309487 for 12.2. Is it enough?
Comment 9 Lionel Dricot 2011-11-16 14:30:24 UTC
Thanks, you did a great analysis of the problem.

But it's really weird to have something that you are "recommended to not use". It feels weird and unpolished.

As you point out, removing that config from Yast after installation would be a perfect fix. The remaining question is to understand why some people asked to get it back if they have their desktop config tool anyway. (maybe, those complaints are only because they are used to something but maybe they have valid reasons to complain).
Comment 10 Lars Müller 2011-11-16 16:17:12 UTC
@Lional: As all is addressed for 12.1 please remove the misleading statement from the most annoying bugs in 12.1 page in the wiki.

Also ensure to clear the needinfo state.  This option is available from directly below the comment input field.
Comment 11 Lars Müller 2011-11-17 12:59:07 UTC
I've removed the invalid complain from the wiki page.

Thanks Lional for your ignorance!

@Jiri: As everything remaining hast to be tracked by openFATE it looks to me like we can close this issue.
Comment 12 Jiří Suchomel 2011-11-21 08:30:57 UTC
> The remaining question is to understand why some people asked to
> get it back if they have their desktop config tool anyway.

It makes sense for non-KDE/non-GNOME environments, and for text mode as well (because YaST also sets the console keyboard layout).


(In reply to comment #11)

> @Jiri: As everything remaining hast to be tracked by openFATE it looks to me
> like we can close this issue.

Mostly, yes.

But I actually think about removing that initial set of keyboard layout (see start of comment 8) when YaST is started on configured system. Seems like it does more harm than good.
Comment 13 Jiří Suchomel 2011-11-21 15:04:56 UTC
(In reply to comment #12)

> But I actually think about removing that initial set of keyboard layout (see
> start of comment 8) when YaST is started on configured system. Seems like it
> does more harm than good.

I just did it for yast2-country-2.22.0.

The rest will be solved as feature in FATE.
Comment 14 Bernhard Wiedemann 2011-11-21 16:00:10 UTC
This is an autogenerated message for OBS integration:
This bug (725470) was mentioned in
https://build.opensuse.org/request/show/92885 Factory / yast2-country