Xwin does not start because CYGWIN_ROOT is wrong in startxwin.bat
Jon TURNEY
jon.turney@dronecode.org.uk
Wed Jun 17 17:43:00 GMT 2009
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/
More information about the Cygwin-xfree
mailing list