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.2 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) 2010 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. More flexible root application startup.
  19. diff -ruN xdm-1.1.9-orig/config/Xsetup_0 xdm-1.1.9/config/Xsetup_0
  20. --- xdm-1.1.9-orig/config/Xsetup_0 2009-09-18 04:24:37.000000000 +0200
  21. +++ xdm-1.1.9/config/Xsetup_0 2010-07-23 15:37:43.568753394 +0200
  22. @@ -1,2 +1,3 @@
  23. #!/bin/sh
  24. xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
  25. +xsetroot -solid black
  26. diff -ruN xdm-1.1.9-orig/config/Xsession.cpp xdm-1.1.9/config/Xsession.cpp
  27. --- xdm-1.1.9-orig/config/Xsession.cpp 2009-09-18 04:24:37.000000000 +0200
  28. +++ xdm-1.1.9/config/Xsession.cpp 2010-07-23 15:37:43.568753394 +0200
  29. @@ -62,23 +62,13 @@
  30. if [ -r "$resources" ]; then
  31. BINDIR/xrdb -load "$resources"
  32. fi
  33. -#if defined(__SCO__) || defined(__UNIXWARE__)
  34. - [ -r /etc/default/xdesktops ] && {
  35. - . /etc/default/xdesktops
  36. - }
  37. - [ -r /etc/default/xdm ] && {
  38. - . /etc/default/xdm
  39. - }
  40. + [ -f /etc/profile ] && . /etc/profile
  41. - XCOMM Allow the user to over-ride the system default desktop
  42. - [ -r $HOME/.xdmdesktop ] && {
  43. - . $HOME/.xdmdesktop
  44. - }
  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