summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-03-06 17:03:30 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-03-06 17:03:30 +0000
commit028b0839dc4079c8fe56b38a80be51dc8c89ea17 (patch)
treef6d9a8b2d1668ef36c94d34f9bc094daeb6d5528
parentc30b10caedf7bdafb9abda914f80c90bfaccaec5 (diff)
Cygwin can also have spaces in $HOME
-rw-r--r--startx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/startx.cpp b/startx.cpp
index f911499..943fa78 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -279,7 +279,7 @@ if [ x"$enable_xauth" = x1 ] ; then
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie
EOF
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
serverargs=${serverargs}" -auth '"${xserverauthfile}"'"
#else
serverargs=${serverargs}" -auth "${xserverauthfile}
@@ -313,7 +313,7 @@ else
fi
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs
#else
XINIT "$client" $clientargs -- "$server" $display $serverargs