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

  1. #!/bin/sh
  2. echo "Removing all old gdm sessions scripts ..."
  3. # we should not delete Default
  4. rm -fv /etc/D_prefix/dm/Sessions/[a-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 .desktop file
  11. cat > /etc/D_prefix/dm/Sessions/$short.desktop <<- EOT
  12. [Desktop Entry]
  13. Encoding=UTF-8
  14. Name=$short
  15. Comment=$name
  16. Exec=$exec
  17. # no icon yet, only the top three are currently used
  18. Icon=
  19. Type=Application
  20. EOT
  21. done