OpenSDE Packages Database (without history before r20070)
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.

41 lines
1.1 KiB

  1. #!/bin/sh
  2. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # T2 SDE: package/.../gdm/gdm.postinstall
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. mkdir -p /etc/D_prefix/dm/Sessions/
  16. echo "Removing all old gdm sessions scripts ..."
  17. # we should not delete Default
  18. rm -fv /etc/D_prefix/dm/Sessions/[a-z]*
  19. echo "Creating gdm session scripts from wm registry ..."
  20. for x in /usr/share/rock-registry/wm/* ; do
  21. . $x
  22. short="`basename $x`"
  23. echo " $name ($short) ..."
  24. # create the .desktop file
  25. cat > /etc/D_prefix/dm/Sessions/$short.desktop <<- EOT
  26. [Desktop Entry]
  27. Encoding=UTF-8
  28. Name=$short
  29. Comment=$name
  30. Exec=$exec
  31. # no icon yet, only the top three are currently used
  32. Icon=
  33. Type=Application
  34. EOT
  35. done