This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Starting Xwin - Shell Window Remains


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]