This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: reset/terminate problems; preventing multiple XWin instance
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 4 Mar 2004 13:12:46 +0100 (MET)
- Subject: Re: reset/terminate problems; preventing multiple XWin instance
- References: <40471B9D.7090308@tromer.org>
- Reply-to: cygwin-xfree at cygwin dot com
On Thu, 4 Mar 2004 cygwinx2eran@tromer.org wrote:
> On 2004-03-04 18:02, Takuma Murakami wrote:
>
> > > Perhaps there should be a switch that says "if the display already
> > > exists, exit silently".
> > I agree. We should have an option like "-silent" or "-quiet".
>
> That's not quite it -- I want to ignore a "display already exists"
> error, but if some other fatal error prevents XWin from loading I want
> to know about it (say, via the dialog box).
The do something like this:
export DISPLAY=:0
if ! xdpyinfo >/dev/null 2>&1; then
XWin $DISPLAY $options
fi
xterm
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723
Chemnitzer Linux-Tag 2004 - 6. und 7. März 2004
http://www.tu-chemnitz.de/linux/tag