[Bug 978454] New: "User/System defaut" session does not work in sddm (& kdm)
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 Bug ID: 978454 Summary: "User/System defaut" session does not work in sddm (& kdm) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE Workspace (Plasma) Assignee: opensuse-kde-bugs@opensuse.org Reporter: dimstar@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- There is a session called 'User/System default" listed in the session selector on sddm & kdm If one is to chose this session for login, sddm logs one in but the user session is immediately terminated again and sddm / kdm being presented -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eich@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 Egbert Eich <eich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c1 Egbert Eich <eich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimstar@opensuse.org Flags| |needinfo?(dimstar@opensuse. | |org) --- Comment #1 from Egbert Eich <eich@suse.com> --- What's your DEFAULT_WM setting in /etc/sysconfig/windowmanager? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c2 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dimstar@opensuse. | |org) | --- Comment #2 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Egbert Eich from comment #1)
What's your DEFAULT_WM setting in /etc/sysconfig/windowmanager?
DEFAULT_WM="kde4" (this was from an openQA run, updating an old system to TW) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c3 --- Comment #3 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Dominique Leuenberger from comment #2)
(In reply to Egbert Eich from comment #1)
What's your DEFAULT_WM setting in /etc/sysconfig/windowmanager?
DEFAULT_WM="kde4"
(this was from an openQA run, updating an old system to TW)
Indeed, toggling this to 'plasma5' works (I though have though about that one). So the question would be how to avoid obsolete values in there on system upgrades... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c7 --- Comment #7 from Egbert Eich <eich@suse.com> --- So this seems to be a KDE update issue. kde4 doesn't seem to exist any more after the update. So the DEFAULT_WM is set to an invalid parameter. We do rely on this to be set correctly however. We could add even more sanity checks and replace the WINDOWMANAGER with a default when it is obvious that the value in /etc/sysconfig/windowmanager is bogus to ... maybe twm? This ought to be an incentive to fix this ;) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c8 --- Comment #8 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Egbert Eich from comment #7)
So this seems to be a KDE update issue. kde4 doesn't seem to exist any more after the update. So the DEFAULT_WM is set to an invalid parameter.
Indeed - and as such the current assignee and component (Plasma 5 workspace) is correct
We do rely on this to be set correctly however.
Makes sense
We could add even more sanity checks and replace the WINDOWMANAGER with a default when it is obvious that the value in /etc/sysconfig/windowmanager is bogus to ... maybe twm?
That's cruel :) But despite all the cruelty, might be better nevertheless... it would be nice to fallback to something and inject a dialog into the session, instructing the careless user/'admin' about why it now 'looks so different to what was expected') - but I'd rather file this as a new feature, independent of this bug (which is about updating an old system to TW) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c11 --- Comment #11 from Wolfgang Bauer <wbauer@tmo.at> --- The kdebase4-session package has the following postinstall script to cater for upgrades: :~> rpm -q --scripts kdebase4-session postinstall scriptlet (using /bin/sh): # Reset the DEFAULT_WM value for KDE upgrade compatibility if [ -f /etc/sysconfig/windowmanager ]; then OLD_DEFAULTWM=`grep "DEFAULT_WM" /etc/sysconfig/windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` fi if [ -f /var/adm/fillup-templates/sysconfig.windowmanager ]; then TEMPLATE_DEFAULTWM=`grep "DEFAULT_WM" /var/adm/fillup-templates/sysconfig.windowmanager | cut -d '=' -f 2 | cut -d '"' -f 2` fi # Check the old DEFAULT_WM and whether current DEFAULT_WM exists if ( [[ $OLD_DEFAULTWM = "startkde4" ]] || [[ $OLD_DEFAULTWM = "startkde" ]] || [[ $OLD_DEFAULTWM = "kde4" ]]); then if ( [[ -n $TEMPLATE_DEFAULTWM ]] && [[ $OLD_DEFAULTWM != $TEMPLATE_DEFAULTWM ]]); then sed -i -e "s/^DEFAULT_WM=['\"]\?kde.*/DEFAULT_WM=\"${TEMPLATE_DEFAULTWM}\"/g" /etc/sysconfig/windowmanager fi fi We probably should add something similar to plasma5-session... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c12 Wolfgang Bauer <wbauer@tmo.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wbauer@tmo.at --- Comment #12 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Dr. Werner Fink from comment #9)
(In reply to Egbert Eich from comment #7)
The packages for kde4 like kdebase4-runtime are there but there is not startkde(4) to get such a session up nor a kde4.desktop ...
kde4.desktop doesn't exist any more since years... It's been renamed to kde-plasma.desktop in the KDE4 life-cycle already, part of kdebase4-session. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c14 --- Comment #14 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Dr. Werner Fink from comment #13)
(In reply to Wolfgang Bauer from comment #12)
Ah .. OK ... stupid question: both plasma5 and kde4 then use /usr/bin/startkde in plasma5.desktop resp. kde-plasma.desktop ... how get a KDE4 user KDE4 with the /usr/bin/startkde script?
There is no usable KDE4 desktop in the distribution any more. In other words: you can't. kde-plasma.desktop is actually only included (in plasma5-session) to prevent such problems when upgrading from older distributions (that still used KDE4, like 13.2). I think we could even remove that if that script is added, there were bug reports about this already... Btw, kde4.desktop was renamed to kde-plasma.desktop in 2012 already it seems, that script was added to kdebase4-session to fix bug#763142. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c17 --- Comment #17 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Dr. Werner Fink from comment #16)
(In reply to Wolfgang Bauer from comment #14)
Btw, kde4.desktop was renamed to kde-plasma.desktop in 2012 already it seems, that script was added to kdebase4-session to fix bug#763142.
the quesiton rises why the aaa_base maintainers had not been informed about such a change as well ;)
I don't know. But currently there is no problem with aaa_base (and no real need to change it), because we do ship kde-plasma.desktop (which is the DEFAULT_WM in aaa_base since 2012) in plasma5-session for compatibility... There was a discussion about that on the opensuse-kde mailinglist a year ago, when the switch to Plasma5 was done in Tumbleweed: http://lists.opensuse.org/opensuse-kde/2015-05/msg00011.html -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c18 --- Comment #18 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Wolfgang Bauer from comment #17)
kde-plasma.desktop (which is the DEFAULT_WM in aaa_base since 2012)
Erm, 2011 even: :~> rpm -q --changelog aaa_base ... * Mon May 30 2011 idonmez@novell.com - Set DEFAULT_WM to kde-plasma, bnc#687781 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c21 --- Comment #21 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Dr. Werner Fink from comment #19)
(In reply to Wolfgang Bauer from comment #18)
OK ... no the entry looks like
## Path: Desktop/Window manager ## Description: ## Type: string(gnome,kde-plasma,kde,plasma5,lxde,xfce,twm,icewm) ## Default: kde-plasma ## Config: profiles,kde,susewm
that is even the comment now shows kde-plasma
Yes, since 2011. That's what I wrote, no? I think the script should still work as-is with the current plasma5-session, so I created https://build.opensuse.org/request/show/393654. In the future, we probably should extend it to also replace kde-plasma with the DEFAULT_WM from /var/adm/fillup-templates/sysconfig.windowmanager, but that would need a change to aaa_base to set the default to plasma5 first. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c25 --- Comment #25 from Wolfgang Bauer <wbauer@tmo.at> --- (In reply to Dr. Werner Fink from comment #22)
(In reply to Wolfgang Bauer from comment #21)
15 minutes back there was kde4 and no kde-plasma ;)
Ah, in the comment you mean... ;) Right, I didn't notice this was still saying kde4, sorry. Thanks for fixing it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=978454 http://bugzilla.opensuse.org/show_bug.cgi?id=978454#c26 Wolfgang Bauer <wbauer@tmo.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #26 from Wolfgang Bauer <wbauer@tmo.at> --- The updated plasma5-session is in Tumbleweed meanwhile, so I think we can close this... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com