Starting Xwin - Shell Window Remains

Doug VanLeuven roamdad@sonic.net
Mon Aug 15 13:43:00 GMT 2005


brett lee wrote:
> Hi,
> 
> I'm able to start and use Xwin.  However, after the X server is up, I need to manually close the
> cygwin bash window (the one that started the X server).  I've checked the usual places, but have
> not come up with a solution.
> 
> This is probably more of a shell "scripting" question, but since the solution I'm looking for is a
> "windows executable (C:\cygwin\startxwin.bat) that I can drop into my StartUp folder to
> automatically start Xwin" when I log in, here I am.
> 
> Here's where I'm at thus far:
> 
> 1.  C:\cygwin\startxwin.bat exists, and has the following contents:  
> 
> @echo off
> 
> c:
> chdir c:\cygwin\bin
> 
> bash --login -i /usr/local/bin/myxwin

You might want to try this:

bash --login -c /usr/local/bin/myxwin
              ^^

-i is for an interactive shell

Regards, Doug

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