diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-05-28 11:54:22 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-05-28 11:54:22 -0700 |
commit | d315445cb85876cda56f46cb657167d4eb906ba0 (patch) | |
tree | 91434eb3c50339877ccbab046f2d616adbef39ff /startx.cpp | |
parent | 3c5e2ed686bd3ab39e2c1e87feffb5990603cf3c (diff) |
Properly handle using xserverrc
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 |