Browse Source

fake:


			
			
				rocklinux
			
			
		
fake 18 years ago
parent
commit
4a5b212f54
2 changed files with 50 additions and 0 deletions
  1. +24
    -0
      package/xorg/xdm/startwm.patch
  2. +26
    -0
      package/xorg/xinit/startwm.patch

+ 24
- 0
package/xorg/xdm/startwm.patch

@ -0,0 +1,24 @@
--- ./config/Xsetup_0.orig 2006-08-04 00:16:51.000000000 +0200
+++ ./config/Xsetup_0 2006-08-04 00:17:03.000000000 +0200
@@ -1,3 +1,4 @@
#!/bin/sh
# $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
+xsetroot -solid black
--- ./config/Xsession.cpp.orig 2006-08-04 00:17:18.000000000 +0200
+++ ./config/Xsession.cpp 2006-08-04 00:18:13.000000000 +0200
@@ -83,5 +83,14 @@
exec `eval $XDESKTOP`
}
#endif
+
+XCOMM we need at least the PATH /opt/.../bin expansion ...
+ [ -f /etc/profile ] && . /etc/profile
+
+ WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
+ [ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
+ [ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
+ [ "$WINDOWMANAGER" != "twm" -a -n "$(type -p ${WINDOWMANAGER%% *})" ] && exec $WINDOWMANAGER
+ xsetroot -solid darkcyan ; exec twm ; exec xterm
exec BINDIR/xsm
fi

+ 26
- 0
package/xorg/xinit/startwm.patch

@ -0,0 +1,26 @@
--- ./xinitrc.cpp.orig 2006-08-04 00:15:01.000000000 +0200
+++ ./xinitrc.cpp 2006-08-04 00:15:55.000000000 +0200
@@ -24,7 +24,7 @@
XMODMAP $usermodmap
fi
-XCOMM start some nice programs
+XCOMM start the windowmanager
#if defined(__SCO__) || defined(__UNIXWARE__)
if [ -r /etc/default/xdesktops ]; then
@@ -68,8 +68,9 @@
XCOMM This is the fallback case if nothing else is executed above
#endif /* !defined(__SCO__) && !defined(__UNIXWARE__) */
-TWM &
-XCLOCK -geometry 50x50-1+1 &
-XTERM -geometry 80x50+494+51 &
-XTERM -geometry 80x20+494-0 &
-exec XTERM -geometry 80x66+0+0 -name login
+WINDOWMANAGER="${WINDOWMANAGER:-startkde}"
+[ "$WINDOWMANAGER" = "gnome" ] && WINDOWMANAGER="gnome-session"
+[ "$WINDOWMANAGER" = "kde" ] && WINDOWMANAGER="startkde"
+[ "$WINDOWMANAGER" != "twm" -a -n "$(type -p ${WINDOWMANAGER%% *})" ] && exec $WINDOWMANAGER
+xsetroot -solid darkcyan ; exec twm ; exec xterm
+

Loading…
Cancel
Save