problem with startxwin.exe and a possible solution
Fri Jan 22 01:35:00 GMT 2010
Marco Atzeri wrote:
> Today I start some experiments and I have found that
> changing the menu target from
> C:\cygwin2\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe
> C:\cygwin2\bin\run.exe -p /usr/bin /usr/bin/startxwin.exe
> all the problems seem gone.
> The Xserver is stable and all the Xterms run smoothly.
> I suppose that my login shell redefine some parameters that
> startxwin.exe needs, while a much simpler
> "run.exe -p /usr/bin" is what is really needed.
The real issue, I think, is that your mechanism doesn't allow you to set
OTHER environment variables that might need to be defined before
launching XWin, such as LC_ALL etc -- which would get set by the
original formula, since 'bash -l' reads your startup files like
~/.bash_profile where they might get set.
Another (untested!) possibility is to use run2.exe (which is kinda
wierd: use a launcher to start a launcher that starts X...)
====== startxwin.xml =======
<?xml version="1.0" encoding="us-ascii"?>
<!-- set environment variables here -->
<Append var="PATH" value="/usr/bin"/>
<Set var="LC_ALL" value="en_US.UTF-8"/>
<Target filename="/usr/bin/startxwin.exe" startin="~">
C:/cygwin/bin/run2.exe --notty /usr/bin/startxwin.xml
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin-xfree