[Bug 1030873] New: [Build 20170322] role-based desktop selection lxde does not autologin
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873 Bug ID: 1030873 Summary: [Build 20170322] role-based desktop selection lxde does not autologin Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other URL: http://openqa.opensuse.org/tests/376325/modules/first_ boot/steps/21 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: dimstar@opensuse.org QA Contact: jsrain@suse.com Found By: --- Blocker: --- ## Observation openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-lxde@64bit fails in [first_boot](http://openqa.opensuse.org/tests/376325/modules/first_boot/steps/21) There seem to be a couple short-comings in the process that are not handled yet (which the previous desktop selection mode did account for): a( how does a DE set it's preferred DM (gdm/sddm/lightdm) - this was part of the desktopselection before b) the selected DE is not appropriately pre-configured in /etc/sysconfig/windowmanager e.g. on the references openQA test, the only DE pattern selected was LXDE - yet, in /etc/sysconfig/windowmanager, 'xfce' was set. I'm not sure if this is also the reason that lightdm refused to do the autologin (but it sounds plausible: what is configured cannot be started; once the user logged in, the WM is stored in the users homw and future reboots would do an autologin ## Reproducible Fails since (at least) Build [20170321](http://openqa.opensuse.org/tests/375069) ## Expected result Last good: [20170320](http://openqa.opensuse.org/tests/374371) (or more recent) ## Further details Always latest result in this scenario: [latest](http://openqa.opensuse.org/tests/latest?machine=64bit&flavor=DVD&version=Tumbleweed&test=lxde&arch=x86_64&distri=opensuse) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
Max Lin
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
Oliver Kurz
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c25
--- Comment #25 from Fabian Vogt
(In reply to Dominique Leuenberger from comment #22)
(In reply to Ludwig Nussel from comment #21)
lightdm uses default.desktop as fallback. That one could be manged by update-alternatives.
Another .desktop file in /usr/share/xsession? Pollutes the drop down selection of any DM that has a session picker... I vote against it
That can be fixed easily by looking at the file and if it's a symlink with target in the same directory, skip it. Needs to be implemented in the major DMs at least, so gdm, lightdm and sddm.
I implemented it this way and for Xfce/LXQt/Plasma/IceWM and enlightenment in a home branch: https://build.opensuse.org/project/monitor/home:favogt:autologin Please test and review before I make submit requests. I made patches for sddm and lightdm, but am not familiar with gdm at all. I didn't add a default.desktop for GNOME because it doesn't work with anything other than GDM anyway (or did that get fixed meanwhile?) WMs like IceWM have a default priority of 15, small desktops like LXQt, Xfce and enlightenment 20 and the two big ones GNOME and KDE Plasma have the highest priority of 25. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c27
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c28
--- Comment #28 from Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c33
--- Comment #33 from Oliver Kurz
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c34
--- Comment #34 from Fabian Vogt
we are still failing to have auto-login but the SRs seem to be accepted -> https://openqa.opensuse.org/tests/420710#step/first_boot/21
what's missing?
Indeed, it looks like I changed it everywhere except for lxde, whoops. I'll submit that soon. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c35
--- Comment #35 from Dominique Leuenberger
(In reply to Oliver Kurz from comment #33)
we are still failing to have auto-login but the SRs seem to be accepted -> https://openqa.opensuse.org/tests/420710#step/first_boot/21
what's missing?
Indeed, it looks like I changed it everywhere except for lxde, whoops. I'll submit that soon.
0620 has the changed lxde-common merged - yet, autologin did not work, see https://openqa.opensuse.org/tests/425981# -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c36
--- Comment #36 from Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c37
Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c38
Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c39
--- Comment #39 from Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c40
--- Comment #40 from Josef Reidinger
In my quick test:
Pattern selected for installation: patterns-openSUSE-lxde_laptop-20150918-26.5.x86_64.rpm
Logs say: clients/desktop_finish.rb:128 Package xorg-x11-server selected or installed, desktop min_x matches clients/desktop_finish.rb:136 Setting logon manager - package selected clients/desktop_finish.rb:142 Setting window manager icewm - package selected clients/desktop_finish.rb:166 Default desktop: icewm clients/desktop_finish.rb:167 Default logon manager: clients/desktop_finish.rb:199 Logon manager shutdown: clients/desktop_finish.rb:207 sysconfig/displaymanager/DISPLAYMANAGER=
And yes, for some reason, icewm-1.3.12-4.4.x86_64.rpm has been actually installed
The answer to WTF is here: https://github.com/yast/skelcd-control-openSUSE/blob/openSUSE-42_3/control/ control.openSUSE.xml#L243-L253
And here: https://github.com/yast/yast-installation/blob/SLE-12-SP3/src/lib/ installation/clients/desktop_finish.rb#L122-L164
Installer tries to match the "selected desktop" using "installed packages", there is NO lxde definition in
so no wonder it's not found. Guys, as you know what to put there, would you mind creating a PR for the control file change?
this behavior is in fact wrong. If custom is selected, then no desktop should be selected and should be kept empty, so it should be autoselected. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c41
--- Comment #41 from Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c42
--- Comment #42 from Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c43
--- Comment #43 from Lukas Ocilka
this behavior is in fact wrong. If custom is selected, then no desktop should be selected and should be kept empty, so it should be autoselected.
I'm not getting your message ... My behavior is wrong or the behavior of Yast or some particular behavior of some part? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c44
Lukas Ocilka
Thanks. This is important to Leap 42.3
Ludwig, this bug is reported for Tumbleweed. Leap uses different desktop selection dialog. I was actually testing Leap DVD, instead of TW. But as it seems, Josef talks about the TW behavior. This really makes a huge difference. So, what are your expectations here? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c45
--- Comment #45 from Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c46
--- Comment #46 from Josef Reidinger
(In reply to Ludwig Nussel from comment #37)
Thanks. This is important to Leap 42.3
Ludwig, this bug is reported for Tumbleweed. Leap uses different desktop selection dialog. I was actually testing Leap DVD, instead of TW. But as it seems, Josef talks about the TW behavior. This really makes a huge difference. So, what are your expectations here?
we are talking about leap 42.3 and TW. There should be same dialog. What I mean by previous sentence, is that new desktop selection intentionally set default desktop to nil and in such case I hope it skip writting it to /etc/sysconfig/windowmanager and it will select desktop according to default.desktop but maybe it is not that case. I have to check it -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c47
--- Comment #47 from Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c48
Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c50
--- Comment #50 from Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c51
Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c53
--- Comment #53 from Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c54
--- Comment #54 from Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c55
--- Comment #55 from Lukas Ocilka
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c56
Josef Reidinger
Created attachment 729751 [details] y2logs from a local reproducer
As noted, despite lxde now also setting up the default.desktop, this does not work.
While debugging this locally, it shows that /etc/sysconfig/windowmanager STILL has the default set to 'xfce' - even though xfce is not being installed in my local test.
/var/adm/filleup-templates/sysconfig.windowmanager (from aaa_base) has the defalut setting DEFAULT_WM="kde-plasma" - on my install /etc/sysconfig/windowmanager has DEFAULT_WM="xfce" - so definitively yast (or some thing else) must have changed the default.
I am testing my fix and it keeps there kde-plasma ( yast do not touch that file ) and result is that desktop env is icewm. So if needed, what should write there to have default.desktop working? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c57
Dominique Leuenberger
I am testing my fix and it keeps there kde-plasma ( yast do not touch that file ) and result is that desktop env is icewm. So if needed, what should write there to have default.desktop working?
From the tests I did, DEFAULT_WM should be set to "" - then default.desktop
triggers (alternatively, we can also put 'default' - as in the end it just represents the .desktop file name -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c58
--- Comment #58 from Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c59
--- Comment #59 from Josef Reidinger
as for the current setting remaining kde_plasma, that makes sense, as this would now mean that the default is properly defined in /var/adm/filleup-templates/sysconfig.windowmanager (from aaa_base)
In the current versions, this file contains "kde-plasma"; if we need to change this to 'default' ot '', I don't see a problem doing so (and yast no longer changing it, unless a specific role was selected, i.e GNOME or KDE.
that would be perfect. As change to yast2-installation have to go also to SP3 so I would like to have it minimal. For TW and SLE15 we can do whatever makes more sense. But keeping default defined by distro sounds very reasonable for me. So I will prepare pull request to SP3 and if you can modify aaa_base to contain e.g. that default. Thanks -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c60
--- Comment #60 from Dominique Leuenberger
that would be perfect. As change to yast2-installation have to go also to SP3 so I would like to have it minimal. For TW and SLE15 we can do whatever makes more sense. But keeping default defined by distro sounds very reasonable for me. So I will prepare pull request to SP3 and if you can modify aaa_base to contain e.g. that default.
Thanks
https://github.com/openSUSE/aaa_base/pull/42 IIRC, this still also requires a change in yast for TW, right? - as in my tests done so far the default was reset to XFCE for some reason -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c61
--- Comment #61 from Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c62
Josef Reidinger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c63
--- Comment #63 from Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c64
--- Comment #64 from Josef Reidinger
In a discussion with Dominique we agreed for TW to
- get rid of DEFAULT_WM - try to add some code to aaa_base to migrate the DEFAULT_WM setting to update-alternatives. aaa_base already needs coreutils which is the only dependency of update-alternatives anyways. - remove the patch that reads DEFAULT_WM it from GDM - make GDM fall back to default.desktop first, then potentially gnome.desktop - apply the same logic to wayland sessions
SDDM already doesn't read DEFAULT_WM so broken in that regard already since it's introduction
well, in such case we have to update once more yast module, as we write DEFAULT_WM when user select other roles like KDE or GNOME. So if user select KDE role but install also GNOME pattern, what will be selected? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c65
--- Comment #65 from Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c66
--- Comment #66 from Ludwig Nussel
[...] well, in such case we have to update once more yast module, as we write DEFAULT_WM when user select other roles like KDE or GNOME. So if user select KDE role but install also GNOME pattern, what will be selected?
Depends on the priorities of update-alternatives. Right now the value gets written but SDDM ignores it... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c67
--- Comment #67 from Josef Reidinger
(In reply to Josef Reidinger from comment #64)
[...] well, in such case we have to update once more yast module, as we write DEFAULT_WM when user select other roles like KDE or GNOME. So if user select KDE role but install also GNOME pattern, what will be selected?
Depends on the priorities of update-alternatives. Right now the value gets written but SDDM ignores it...
so role based desktop selection will be only about package selection, right? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c68
--- Comment #68 from Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c70
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873
http://bugzilla.opensuse.org/show_bug.cgi?id=1030873#c71
Oliver Kurz
participants (1)
-
bugzilla_noreply@novell.com