mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
537 B

#!/bin/sh
echo "Removing all old gdm sessions scripts ..."
# we should not delete Default
rm -fv /D_sysconfdir/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 > /D_sysconfdir/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