--- update_wms.orig 2003-01-21 19:06:05 +0300 +++ update_wms.orig 2004-05-02 23:17:14 +0400 @@ -44,3 +44,19 @@ 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__ + done +fi