summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-05-28 11:54:22 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-05-28 11:54:22 -0700
commitd315445cb85876cda56f46cb657167d4eb906ba0 (patch)
tree91434eb3c50339877ccbab046f2d616adbef39ff
parent3c5e2ed686bd3ab39e2c1e87feffb5990603cf3c (diff)
Properly handle using xserverrc
-rw-r--r--startx.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/startx.cpp b/startx.cpp
index 9266341..8ffdc70 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -161,12 +161,6 @@ case $1 in
esac
#endif
-if [ -f $userserverrc ]; then
- defaultserverargs=$userserverrc
-elif [ -f $sysserverrc ]; then
- defaultserverargs=$sysserverrc
-fi
-
whoseargs="client"
while [ x"$1" != x ]; do
case "$1" in
@@ -218,13 +212,19 @@ fi
XCOMM process server arguments
if [ x"$server" = x ]; then
- XCOMM if no server arguments or display either, use rc file instead
+ server=$defaultserver
+
+ XCOMM if no server arguments or display either, use defaults
if [ x"$serverargs" = x -a x"$display" = x ]; then
- server=$defaultserver
+ XCOMM For compatibility reasons, only use xserverrc if there were no server command line arguments
+ if [ -f $userserverrc ]; then
+ server=$userserverrc
+ elif [ -f $sysserverrc ]; then
+ server=$sysserverrc
+ fi
+
serverargs=$defaultserverargs
display=$defaultdisplay
- else
- server=$defaultserver
fi
fi