This is the mail archive of the cygwin-xfree@cygwin.com 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: reset/terminate problems; preventing multiple XWin instance


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


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