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.

70 lines
2.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xorg/startwm.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  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. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. More flexible root application startup. Kind of ROCK Linux specific.
  20. --- ./programs/xdm/config/Xsetup_0.orig Wed Apr 27 09:20:03 1994
  21. +++ ./programs/xdm/config/Xsetup_0 Thu Dec 28 15:23:15 2000
  22. @@ -1,3 +1,4 @@
  23. #!/bin/sh
  24. # $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
  25. xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
  26. +xsetroot -solid black
  27. --- ./programs/xdm/config/Xsession.cpp.orig 2006-03-18 22:31:35.000000000 +0000
  28. +++ ./programs/xdm/config/Xsession.cpp 2006-03-18 22:33:23.000000000 +0000
  29. @@ -56,5 +56,14 @@
  30. exec `eval $XDESKTOP`
  31. }
  32. #endif
  33. +
  34. +XCOMM we need at least the PATH /opt/.../bin expansion ...
  35. + [ -f /etc/profile ] && . /etc/profile
  36. +
  37. + WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
  38. + [ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
  39. + [ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
  40. + [ "$WINDOWMANAGER" != "twm" -a -n "$(type -p ${WINDOWMANAGER%% *})" ] && exec $WINDOWMANAGER
  41. + xsetroot -solid darkcyan ; exec twm ; exec xterm
  42. exec BINDIR/xsm
  43. fi
  44. --- ./programs/xinit/xinitrc.cpp.orig 2006-03-18 22:36:41.000000000 +0000
  45. +++ ./programs/xinit/xinitrc.cpp 2006-03-18 22:38:20.000000000 +0000
  46. @@ -24,7 +24,7 @@
  47. XMODMAP $usermodmap
  48. fi
  49. -XCOMM start some nice programs
  50. +XCOMM start the window manager
  51. #if defined(__SCO__) || defined(__UNIXWARE__)
  52. if [ -r /etc/default/xdesktops ]; then
  53. @@ -68,8 +68,8 @@
  54. XCOMM This is the fallback case if nothing else is executed above
  55. #endif /* !defined(__SCO__) && !defined(__UNIXWARE__) */
  56. -TWM &
  57. -XCLOCK -geometry 50x50-1+1 &
  58. -XTERM -geometry 80x50+494+51 &
  59. -XTERM -geometry 80x20+494-0 &
  60. -exec XTERM -geometry 80x66+0+0 -name login
  61. +WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
  62. +[ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
  63. +[ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
  64. +[ "$WINDOWMANAGER" != "twm" -a -n "$(type -p ${WINDOWMANAGER%% *})" ] && exec $WINDOWMANAGER
  65. +xsetroot -solid darkcyan ; exec twm ; exec xterm