reset/terminate problems; preventing multiple XWin instance
Alexander Gottwald
alexander.gottwald@s1999.tu-chemnitz.de
Thu Mar 4 12:12:00 GMT 2004
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
More information about the Cygwin-xfree
mailing list