[Bug 667408] New: gdm ignores DEFAULT_WM in /etc/sysconfig/windowmanager
https://bugzilla.novell.com/show_bug.cgi?id=667408 https://bugzilla.novell.com/show_bug.cgi?id=667408#c0 Summary: gdm ignores DEFAULT_WM in /etc/sysconfig/windowmanager Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: gber@opensuse.org QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 gdm ignores DEFAULT_WM in /etc/sysconfig/windowmanager and always uses the "gnome" session instead, see e.g. http://openqa.opensuse.org/results/openSUSE-NET-x86_64-Build1033-xfce and in particular http://openqa.opensuse.org/opensuse/testresults/openSUSE-NET-x86_64-Build103... Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c1
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c2
--- Comment #2 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c3
--- Comment #3 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c4
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c5
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c6
Pavol Rusnak
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c7
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c8
--- Comment #8 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c9
--- Comment #9 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c10
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c11
--- Comment #11 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c12
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c13
Guido Berhörster
Hmmm ... AFAIK the DEFAULT_WM is from /etc/sysconfig/windowmanager
Yes it is, DEFAULT_WM gets initially set by the installer to the default session of the desktop environment chosen during installation (determined by the control file, see attached patch).
That means if /usr/share/xsessions/${DEFAULT_WM}.desktop does not exist this one should been choosen (or vice versa) ... and the file
I'm not sure what you mean here?
/usr/share/xsessions/${DEFAULT_WM}.desktop should be documented in /etc/sysconfig/windowmanager as well.
See SR #59526, I have already listed the new valid values there, do you want me to add an explanatory comment that it needs to be the basename of a session file? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c14
Dr. Werner Fink
I'm not sure what you mean here?
something like test -z "$DEFAULT_WM" && DEFAULT_WM=twm SAVEPATH=$PATH PATH=$PATH:/usr/X11R6/bin:/opt/gnome/bin:/usr/openwin/bin desktop=/usr/share/xsessions/${DEFAULT_WM}.desktop if test -s ${desktop} ; then wm=$(sed -rn '/^Exec=/{s@[^=]*=([^=]*)@\1@p}' ${desktop}) WINDOWMANAGER=$(type -p $wm 2>/dev/null) fi if test -z "$WINDOWMANAGER" ; then WINDOWMANAGER=$(type -p ${DEFAULT_WM##*/) fi PATH=$SAVEPATH export WINDOWMANAGER unset desktop wm DEFAULT_WM SAVEPATH with this we're sure that the variable WINDOWMANAGER will be have a valid value even if something goes wrong with the desktop files. Otherise a user specific window manager without a desktop file would lead to an error. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c15
--- Comment #15 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c16
--- Comment #16 from Guido Berhörster
Just seen that you have changed /etc/profile.d/profile.sh but *not* /etc/profile.d/profile.csh
I'll add the change also to /etc/profile.d/profile.csh otherwise all tcsh users won't ne able to use desktop files.
I can resubmit both + profile.csh with a fallback to an executable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c17
--- Comment #17 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c18
--- Comment #18 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c19
--- Comment #19 from Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c20
--- Comment #20 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c21
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c22
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c23
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c24
--- Comment #24 from Guido Berhörster
Werner, should I accept SR #59593 now?
I have changed it myself, WINDOWMANAGER detection in /etc/init.d/xdm now exactly matches that in /etc/profile.d/profile.sh. See SR#59778. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c25
--- Comment #25 from Guido Berhörster
Re: patch in comment 9 (attachment 411138 [details]), the Factory mail is http://lists.opensuse.org/opensuse-factory/2011-01/msg00340.html , so far without a reply.
I am afraid the patch is not enough, as it addresses only the control file, living in yast2-installation SVN and also in skelcd-*.rpm. DEFAULT_WM is also present in /etc/sysconfig/windowmanager, originating in /var/adm/fillup-templates/sysconfig.windowmanager (aaa_base.rpm, on 11.3)
sysconfig.windowmanager has already been changed.
Another thing: since we are standardizing this, should LXDE really be uppercase and all others lowercase?
I only did that because the session file is named LXDE.desktop, I can make a quick fix to lxde-common and aaa_base to make it lowercase. Would you adapt the patch to the control file accordingly? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c26
--- Comment #26 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c27
--- Comment #27 from Guido Berhörster
SR #59778 has been accepted and forwarded to openSUSE:Factory as SR #59781. What's still open?
I've just renamed LXDE.desktop to lxde.desktop in lxde-common, forwarded to Factory as SR#59784, adaptation of sysconfig.windowmanager in aaa_base is SR#59779 and needs to be pushed into Factroy. Other than that only Yast needs to be updated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c28
--- Comment #28 from Stefan Dirsch
(In reply to comment #26)
SR #59778 has been accepted and forwarded to openSUSE:Factory as SR #59781.
And meanwhile accepted.
What's still open?
I've just renamed LXDE.desktop to lxde.desktop in lxde-common, forwarded to Factory as SR#59784,
Accepted as well.
adaptation of sysconfig.windowmanager in aaa_base is SR#59779 and needs to be pushed into Factroy.
Accepted by gregkh but not been forwarded to openSUSE:Factory. :-( Werner, since you have permission in Base:System, can you do so?
Other than that only Yast needs to be updated.
==> assignee -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c29
--- Comment #29 from Stefan Dirsch
adaptation of sysconfig.windowmanager in aaa_base is SR#59779 and needs to be pushed into Factroy.
Accepted by gregkh but not been forwarded to openSUSE:Factory. :-( Werner, since you have permission in Base:System, can you do so?
Looks like this happened meanwhile. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c30
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c31
--- Comment #31 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=667408
https://bugzilla.novell.com/show_bug.cgi?id=667408#c32
Lukas Ocilka
participants (1)
-
bugzilla_noreply@novell.com