This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: problem with startxwin.exe and a possible solution
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 21 Jan 2010 20:34:52 -0500
- Subject: Re: problem with startxwin.exe and a possible solution
- References: <185341.30479.qm@web25502.mail.ukl.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
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
>
> to
>
> 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"?>
<Run2Config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="run2.xsd">
<Global>
<Environment>
<!-- set environment variables here -->
<Append var="PATH" value="/usr/bin"/>
<Set var="LC_ALL" value="en_US.UTF-8"/>
</Environment>
<Target filename="/usr/bin/startxwin.exe" startin="~">
</Target>
</Global>
</Run2Config>
Shortcut target:
C:/cygwin/bin/run2.exe --notty /usr/bin/startxwin.xml
--
Chuck
--
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/