This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: using chere
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 21 Jun 2007 10:46:23 -0700
- Subject: Re: using chere
- References: <f5c30k$v3t$1@sea.gmane.org> <514926.2846.qm@web25006.mail.ukl.yahoo.com> <f5e0qn$ten$1@sea.gmane.org> <467AB556.9030703@gmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
Dave wrote:
> In other words, would there be general unhappiness if I were to set the
> (chere) xterm startup command to something along the lines of:
>
> %cygwin%\bin\run.exe -p /usr/X11R6/bin %cygwin%\bin\xterm.exe -display
> 127.0.0.1:0.0 -e /bin/xhere /bin/bash.exe "%L"
>
> Does anyone have a better solution for starting xterm?
I think you should use just "-display :0" as that is the generic way to
say "the first local display". Although, if the user has more than one
X server running, they probably already have thier DISPLAY set, so in
that case what's really needed is a -set-display-if-its-not-already-set
option.
Also, I don't know how much scripting you can pack into a one-liner, but
there is always the checkX utility whose sole purpose in life is to tell
if an X server is running. With it you could give a more friendly error
when there's no X server than just a window flashing and disappearing or
nothing happening.
Brian
--
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/