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

  1. #!/bin/sh
  2. echo "Removing all old gdm sessions scripts ..."
  3. # except Xsession
  4. rm -fv /etc/opt/gnome2/gdm/Sessions/[a-z,A-W,Y,Z]*
  5. echo "Creating gdm session scripts from ROCK wm registry ..."
  6. for x in /usr/share/rock-registry/wm/* ; do
  7. . $x
  8. short="`basename $x`"
  9. echo " $name ($short) ..."
  10. # create the session script for the template-session created
  11. # during the ROCK Linux build of gdm
  12. sed -e "s,yyyy,$short," -e "s,zzzz,$exec," \
  13. /etc/opt/gnome2/gdm/template-session > \
  14. "/etc/opt/gnome2/gdm/Sessions/$name"
  15. chmod -v +x "/etc/opt/gnome2/gdm/Sessions/$name"
  16. done