|
|
@ -1,8 +1,8 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
echo "Removing all old gdm sessions scripts ..." |
|
|
|
# except Xsession |
|
|
|
rm -fv /etc/opt/gnome2/gdm/Sessions/[a-z,A-W,Y,Z]* |
|
|
|
# we should not delete Default |
|
|
|
rm -fv /etc/opt/gnome2/dm/Sessions/[a-z]* |
|
|
|
|
|
|
|
echo "Creating gdm session scripts from ROCK wm registry ..." |
|
|
|
for x in /usr/share/rock-registry/wm/* ; do |
|
|
@ -11,11 +11,17 @@ for x in /usr/share/rock-registry/wm/* ; do |
|
|
|
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" |
|
|
|
# create the .desktop file |
|
|
|
cat > /etc/opt/gnome2/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 |
|
|
|
|