
Originally Posted by
ianlamin
You are wrong that changing /etc/sysconfig/windowmanager gonna make it right.
Well, how are you starting X then?
My /etc/init.d/xdm has this:
Code:
test -z "$DEFAULT_WM" && DEFAULT_WM=twm
if test -z "$WINDOWMANAGER" ; then
SAVEPATH=$PATH
PATH=$PATH:/usr/X11R6/bin:/usr/openwin/bin
desktop=/usr/share/xsessions/${DEFAULT_WM}.desktop
if test -s "$desktop" ; then
while read -r line; do
case ${line} in
Exec=*) WINDOWMANAGER="$(command -v ${line#Exec=})"
break
esac
done < $desktop
fi
if test -n "$DEFAULT_WM" -a -z "$WINDOWMANAGER" ; then
WINDOWMANAGER="$(command -v ${DEFAULT_WM##*/})"
fi
PATH=$SAVEPATH
unset SAVEPATH desktop
fi
unset DEFAULT_WM
export WINDOWMANAGER
Which obviously gets the name of the session's .desktop file (in /usr/share/xsessions/) from $DEFAULT_WM and sets $WINDOWMANAGER according to the "Exec=" line in that file.
If you do set $WINDOWMANAGER somewhere else already, this is not done of course.
If $DEFAULT_WM is undefined, it is set to "twm", so maybe you had a typo somewhere?
I haven't tried out Mate myself, but that's the way how it works with any other desktop environment. And Mate does contain an /usr/share/xsessions/mate.desktop file as well. Do you have that? I think it's included in the mate-session-manager package.
Bookmarks