summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/startx.man2
-rw-r--r--startx.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/man/startx.man b/man/startx.man
index 2fe952d..1c48a66 100644
--- a/man/startx.man
+++ b/man/startx.man
@@ -177,7 +177,7 @@ will be used.
.TP 25
XSERVERRC
This variable should contain the location of an xserver file. If unset,
-.I $(HOME)/.xinitrc
+.I $(HOME)/.xserverrc
or
.I __xinitdir__/xserverrc
will be used.
diff --git a/startx.cpp b/startx.cpp
index dfbebe1..c38ff21 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -52,7 +52,7 @@ userclientrc=$HOME/.xinitrc
sysclientrc=XINITDIR/xinitrc
userserverrc=$HOME/.xserverrc
-[ -f "${XSERVERRC}" ] && userclientrc="${XSERVERRC}"
+[ -f "${XSERVERRC}" ] && userserverrc="${XSERVERRC}"
sysserverrc=XINITDIR/xserverrc
defaultclient=XTERM
defaultserver=XSERVER