This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Xwin does not start because CYGWIN_ROOT is wrong in startxwin.bat
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: frederic dot bron at m4x dot org
- Date: Wed, 17 Jun 2009 18:43:56 +0100
- Subject: Re: Xwin does not start because CYGWIN_ROOT is wrong in startxwin.bat
- References: <a9a39a210906120024m6775c35bt98e87142e84de16e@mail.gmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
FrÃdÃric Bron wrote:
This bug is valid for 1.5 and 1.7:
I have installed cygwin in D:\cygwin-1.5
but startxwin.bat contains SET CYGWIN_ROOT=\cygwin
It should be updated to SET CYGWIN_ROOT=\cygwin-1.5
Can someone change this in the installation process?
Also the "Start in" directory should also be D:\ or D:\cygwin-1.5
The problem that the 'start in' directory doesn't get set correctly is pretty
straightforward to fix, see [1]
I don't know a good way of CYGWIN_ROOT correctly automatically. There was an
enormous threadnaught about this some time ago, but I lost the will to keep
reading about halfway though so I don't know if a conclusion was reached.
If we assume that startxwin.bat is located in /usr/bin, then I think someone
posted a mail with some DOS shell magic to get the directory that the script
is in into CYGWIN_ROOT, so we should use that, in which case the large comment
block above setting CYGWIN_ROOT about the need to set CYGWIN_ROOT correctly
can die.
Sadly, people seem to have a habit of copying it somewhere else (into their
DOS path perhaps) and expecting it to still work. Or customising the copy in
/usr/bin and then getting all their customisations overwritten when the xinit
package is updated.
PTC, as they say :-)
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=10292
--
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/