diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 15:54:54 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 15:54:54 +0000 |
commit | f18e25ab379836d0885660ad9c42ed588b1152b8 (patch) | |
tree | 727c1863369990c7f3acf97d37b29e434a8a99e0 /startx.cpp |
R6.6 is the Xorg base-lineXORG-MAIN
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/startx.cpp b/startx.cpp new file mode 100644 index 0000000..3044ad6 --- /dev/null +++ b/startx.cpp @@ -0,0 +1,66 @@ +XCOMM!/bin/sh + +XCOMM $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $ +XCOMM +XCOMM This is just a sample implementation of a slightly less primitive +XCOMM interface than xinit. It looks for user .xinitrc and .xserverrc +XCOMM files, then system xinitrc and xserverrc files, else lets xinit choose +XCOMM its default. The system xinitrc should probably do things like check +XCOMM for .Xresources files and merge them in, startup up a window manager, +XCOMM and pop a clock and serveral xterms. +XCOMM +XCOMM Site administrators are STRONGLY urged to write nicer versions. +XCOMM + +userclientrc=$HOME/.xinitrc +userserverrc=$HOME/.xserverrc +sysclientrc=XINITDIR/xinitrc +sysserverrc=XINITDIR/xserverrc +clientargs="" +serverargs="" + +if [ -f $userclientrc ]; then + clientargs=$userclientrc +else if [ -f $sysclientrc ]; then + clientargs=$sysclientrc +fi +fi + +if [ -f $userserverrc ]; then + serverargs=$userserverrc +else if [ -f $sysserverrc ]; then + serverargs=$sysserverrc +fi +fi + +whoseargs="client" +while [ "x$1" != "x" ]; do + case "$1" in + /''*|\.*) if [ "$whoseargs" = "client" ]; then + clientargs="$1" + else + serverargs="$1" + fi ;; + --) whoseargs="server" ;; + *) if [ "$whoseargs" = "client" ]; then + clientargs="$clientargs $1" + else + serverargs="$serverargs $1" + fi ;; + esac + shift +done + +xinit $clientargs -- $serverargs + +/* + * various machines need special cleaning up + */ +#ifdef macII +Xrepair +screenrestore +#endif + +#ifdef sun +kbd_mode -a +#endif |