This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

startxwin.bat causes unnecessary configuration issue


Not strictly speaking a bugreport (everything works as described), but a
proposal how to make life easier:

startxwin.bat currently contains the line

SET CYGWIN_ROOT=\cygwin

Unless your Cygwin Root happens to be at that location, this has to be
edited manually.

This would not be necessary in nearly all cases if we observe that

(1) CYGWIN_ROOT is very often set system-wide anyway, after Cygwin has
been installed, and

(2) in the rare cases where it is unset, it is usually the same
directory where startxwin.bat is located.

Therefore, startxwin.bat can find out by itself where its root is:

if defined CYGWIN_ROOT goto :OK
set CYGWIN_ROOT=%~dp0\..
:OK


Ronald
-- 
Ronald Fischer <ronaldf@eml.cc>
+  If a packet hits a pocket on a socket on a port, 
+  and the bus is interrupted and the interrupt's not caught,
+  then the socket packet pocket has an error to report.
+		(cited after Peter van der Linden)


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]