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.

59 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../xdm/startwm.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. More flexible root application startup.
  18. --- xdm/config/Xsetup_0.orig Wed Apr 27 09:20:03 1994
  19. +++ xdm/config/Xsetup_0 Thu Dec 28 15:23:15 2000
  20. @@ -1,3 +1,4 @@
  21. #!/bin/sh
  22. # $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
  23. xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
  24. +xsetroot -solid black
  25. --- xdm-0.99.3/config/Xsession.cpp.orig 2005-11-28 00:19:46.944477270 +0100
  26. +++ xdm-0.99.3/config/Xsession.cpp 2005-11-28 00:23:55.249879534 +0100
  27. @@ -38,23 +38,15 @@
  28. if [ -r "$resources" ]; then
  29. BINDIR/xrdb -load "$resources"
  30. fi
  31. -#if defined(__SCO__) || defined(__UNIXWARE__)
  32. - [ -r /etc/default/xdesktops ] && {
  33. - . /etc/default/xdesktops
  34. - }
  35. - [ -r /etc/default/xdm ] && {
  36. - . /etc/default/xdm
  37. - }
  38. + # we need at least the PATH /opt/*/bin expansion ...
  39. + [ -f /etc/profile ] && . /etc/profile
  40. - XCOMM Allow the user to over-ride the system default desktop
  41. - [ -r $HOME/.xdmdesktop ] && {
  42. - . $HOME/.xdmdesktop
  43. - }
  44. + WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
  45. + [ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
  46. + [ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
  47. + [ "$WINDOWMANAGER" != "twm" ] && exec $WINDOWMANAGER
  48. + xsetroot -solid darkcyan ; exec twm ; exec xterm
  49. - [ -n "$XDESKTOP" ] && {
  50. - exec `eval $XDESKTOP`
  51. - }
  52. -#endif
  53. exec BINDIR/xsm
  54. fi