#!/bin/sh echo "Removing all old gdm sessions scripts ..."# we should not delete Defaultrm -fv /etc/D_prefix/dm/Sessions/[a-z]* echo "Creating gdm session scripts from ROCK wm registry ..."for x in /usr/share/rock-registry/wm/* ; do . $x short="`basename $x`" echo " $name ($short) ..." # create the .desktop file cat > /etc/D_prefix/dm/Sessions/$short.desktop <<- EOT[Desktop Entry]Encoding=UTF-8Name=$shortComment=$nameExec=$exec# no icon yet, only the top three are currently usedIcon=Type=ApplicationEOT done
#!/bin/sh
echo "Removing all old gdm sessions scripts ..."
# we should not delete Default
rm -fv /etc/D_prefix/dm/Sessions/[a-z]*
echo "Creating gdm session scripts from ROCK wm registry ..."
for x in /usr/share/rock-registry/wm/* ; do
. $x
short="`basename $x`"
echo " $name ($short) ..."
# create the .desktop file
cat > /etc/D_prefix/dm/Sessions/$short.desktop <<- EOT
[Desktop Entry]
Encoding=UTF-8
Name=$short
Comment=$name
Exec=$exec
# no icon yet, only the top three are currently used
Icon=
Type=Application
EOT
done