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.
 
 
 
 
 
 

21 lines
580 B

#!/bin/sh
echo "Removing all old gdm sessions scripts ..."
# except Xsession
rm -fv /etc/opt/gnome2/gdm/Sessions/[a-z,A-W,Y,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 session script for the template-session created
# during the ROCK Linux build of gdm
sed -e "s,yyyy,$short," -e "s,zzzz,$exec," \
/etc/opt/gnome2/gdm/template-session > \
"/etc/opt/gnome2/gdm/Sessions/$name"
chmod -v +x "/etc/opt/gnome2/gdm/Sessions/$name"
done