chmod 755 "/etc/X11/gdm/Sessions/$n"
done
fi
# New GDM scheme
if [ -d /etc/X11/sessions ]; then
rm -f /etc/X11/sessions/*
for n in $runwmlist; do
cat >"/etc/X11/sessions/$n.desktop" <<__EOF__
[Desktop Entry]
Encoding=UTF-8
Name=$n
Comment=$n session
Exec=`/usr/X11R6/bin/runwm --print $n`
Icon=
Type=Application
__EOF__