On Sat, Jul 14, 2001 at 04:36:34AM -0400, Warren Turkal wrote: > Why does a construct like startx -- :1 not work anymore (ever since > like 4.0.2 or something)? > Warren It's a bug, and it's fixed in the 4.1.0 prerelease packages at the URL in my .sig (and therefore will be in 4.1.0-1). For your convenience, I have attached a fixed /usr/X11R6/bin/startx. Replace your existing version with it, and keep a copy in a safe place as any changes to the xbase-clients package will remove this version of the file. In the future, please address questions like these to the debian-user mailing list. -- G. Branden Robinson | Debian GNU/Linux | "Bother," said Pooh, as he was branden@debian.org | assimilated by the Borg. http://people.debian.org/~branden/ |
#!/bin/sh
# $Xorg: startx.cpp,v 1.3 2000/08/17 19:54:29 cpqbld Exp $
#
# This is just a sample implementation of a slightly less primitive
# interface than xinit. It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default. The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#
# $XFree86: xc/programs/xinit/startx.cpp,v 3.7 2001/04/19 15:08:32 dawes Exp $
userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
defaultclient=/usr/X11R6/bin/xterm
defaultserver=/usr/X11R6/bin/X
defaultclientargs=""
defaultserverargs=""
clientargs=""
serverargs=""
if [ -f $userclientrc ]; then
defaultclientargs=$userclientrc
elif [ -f $sysclientrc ]; then
defaultclientargs=$sysclientrc
fi
if [ -f $userserverrc ]; then
defaultserverargs=$userserverrc
elif [ -f $sysserverrc ]; then
defaultserverargs=$sysserverrc
fi
whoseargs="client"
while [ x"$1" != x ]; do
case "$1" in
# extraneous null string required to keep cpp from treating "/*" as a C comment
/''*|\.*)
if [ "$whoseargs" = "client" -a x"$clientargs" = x ]; then
client="$1"
elif [ x"$serverargs" = x ]; then
server="$1"
fi
;;
--)
whoseargs="server"
;;
*)
if [ "$whoseargs" = "client" ]; then
clientargs="$clientargs $1"
else
# display must be the FIRST server argument
if [ x"$serverargs" = x ] && expr "$1" : '^:[0-9]\+$' > /dev/null 2>&1; then
display=$1
else
serverargs="$serverargs $1"
fi
fi
;;
esac
shift
done
# process client arguments
if [ x"$client" = x ]; then
# if no client arguments either, use rc file instead
if [ x"$clientargs" = x ]; then
if [ -f $userclientrc ]; then
client=$userclientrc
elif [ -f $sysclientrc ]; then
client=$sysclientrc
fi
else
client=$defaultclient
fi
fi
# process server arguments
if [ x"$server" = x ]; then
# if no server arguments or display either, use rc file instead
if [ x"$serverargs" = x -a x"$display" = x ]; then
if [ -f $userserverrc ]; then
server=$userserverrc
elif [ -f $sysserverrc ]; then
server=$sysserverrc
fi
else
server=$defaultserver
fi
fi
if [ x"$XAUTHORITY" = x ]; then
export XAUTHORITY=$HOME/.Xauthority
fi
removelist=
# set up default Xauth info for this machine
authdisplay=${display:-:0}
mcookie=`mcookie`
for displayname in $authdisplay `hostname -f`$authdisplay; do
if ! xauth list "$displayname" | grep "$displayname " >/dev/null 2>&1; then
xauth add $displayname . $mcookie
removelist="$displayname $removelist"
fi
done
xinit $client $clientargs -- $server $display $serverargs
if [ x"$removelist" != x ]; then
xauth remove $removelist
fi
if command -v deallocvt > /dev/null 2>&1; then
deallocvt
fi
Attachment:
pgpYQR_n7IqaP.pgp
Description: PGP signature