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 2011-02-01 12:25:01 UTC ---
Just done, see below. Also I've changes /etc/profile.d/profile.sh
to support older configurations found in /etc/sysconfig/windowmanager
#
# Do not use the `which' builtin nor set path to avoid a rehash
#
if ( ! ${?WINDOWMANAGER} ) then
if (! ${?default_wm} ) set default_wm
set desktop="/usr/share/xsessions/${default_wm}.desktop"
set default_wm=${default_wm:t}
if ( -s ${desktop:q} ) then
set wm=`sed -rn '/^Exec=/{s@[^=]*=([^=]*)@\1@p;}' ${desktop:q}`
foreach val ($path /usr/X11R6/bin /usr/openwin/bin)
if ( ${val:q} =~ *.* ) continue
set val=${val:q}/${wm:q}
if ( ! -x ${val:q} ) continue
setenv WINDOWMANAGER ${val:q}
break
end
unset val wm
endif
unset desktop
if ( ${%default_wm} > 0 && ! ${?WINDOWMANAGER} ) then
foreach val ($path /usr/X11R6/bin /usr/openwin/bin)
if ( ${val:q} =~ *.* ) continue
set val=${val:q}/${default_wm:q}
if ( ! -x ${val:q} ) continue
setenv WINDOWMANAGER ${val:q}
break
end
unset val
endif
endif
unset default_wm
--
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.