https://bugzilla.novell.com/show_bug.cgi?id=667408 https://bugzilla.novell.com/show_bug.cgi?id=667408#c14 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|werner@novell.com | --- Comment #14 from Dr. Werner Fink <werner@novell.com> 2011-02-01 10:11:45 UTC ---
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.