This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: /usr/bin/startx fails on new x.org install?
Jon TURNEY wrote:
Thanks for identifying this as a regression. I wasn't sure if this used
to work or not.
I think that the attached patch for startx should fix this problem, if
you wouldn't mind testing it.
Yaakov,
Assuming this is the correct fix, attached is the corresponding patch to the
xinit source (shell scripts generated through cpp, yuck :S)
Entered into bugzilla http://sourceware.org/bugzilla/show_bug.cgi?id=9864
--- origsrc/xinit-1.1.1/startx.cpp 2008-12-17 20:59:54.000000000 +0000
+++ src/xinit-1.1.1/startx.cpp 2009-02-16 21:01:44.625000000 +0000
@@ -279,7 +279,7 @@
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 @@
fi
#else
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__CYGWIN__)
eval XINIT \"$client\" $clientargs -- \"$server\" $display $serverargs
#else
XINIT "$client" $clientargs -- "$server" $display $serverargs
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/