Re: "cannot open display"

2006-09-09 Thread Larry Hall (Cygwin X)

Ogogon !!! wrote:

Good afternoon, colleagues!

I have established CygWin to compile under Windows the program developed 
in gcc. At compilation of console applications - all OK. All 
applications, even rather complex, are started and work without remarks.


However, any attempt to create the program with GTK+, leads to that at 
their start there is a message "Gtk-WARNING **: cannot open display:".
At distribution kit CygWin there is a program gtk-demo.exe. Obviously, 
it it is guaranteed it is compiled without mistakes. It is not started 
and also writes "Gtk-WARNING **: cannot open display:".


My OS - WindowsXP Pro (Rus). What do I do incorrectly?



Forgot to read and follow the problem reporting guidelines?


Problem reports:   http://cygwin.com/problems.html



My WAG - you're not running the X-server.  Run it and try again.  If
you don't have it, re-run 'setup.exe' and install all the X packages.
Open a command prompt and type 'startxwin.bat' and return.  Wait for
the X-server to start (puts a little "X" in your task bar).  Try again.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

--
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/



Re: XWin -silent-dup-error not so silent

2006-09-09 Thread René Berber
Jeff Cook wrote:

> Anybody have a work-around for this super-annoying problem?

I you are using a script like the sample sent by Kenneth, why not doing
something simple as:

PID=`ps -a | grep XWin | cut -d " " -f 6`
if [ -z $PID ]; then
   \cygwin\bin\run XWin -multiwindow -clipboard -silent-dup-error
fi
   \cygwin\bin\run xterm -e /usr/bin/bash -l

You can also use pgrep in PID=... if you have it (makes that part clearer and
more portable).
-- 
René Berber


--
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/



"cannot open display"

2006-09-09 Thread Ogogon !!!

Good afternoon, colleagues!

I have established CygWin to compile under Windows the program developed 
in gcc. At compilation of console applications - all OK. All 
applications, even rather complex, are started and work without remarks.


However, any attempt to create the program with GTK+, leads to that at 
their start there is a message "Gtk-WARNING **: cannot open display:".
At distribution kit CygWin there is a program gtk-demo.exe. Obviously, 
it it is guaranteed it is compiled without mistakes. It is not started 
and also writes "Gtk-WARNING **: cannot open display:".


My OS - WindowsXP Pro (Rus). What do I do incorrectly?

Yours faithfully,
Ogogon.

--
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/



re: XWin -silent-dup-error not so silent

2006-09-09 Thread Jeff Cook
Anybody have a work-around for this super-annoying problem?

Jeff Cook
IT Consultant 3
Facility Services
University of Oregon

XWin -silent-dup-error not so silent
* From: "Kenneth Nellis" 
* To: 
* Date: Mon, 24 Jul 2006 15:50:19 -0400
* Subject: XWin -silent-dup-error not so silent
* Reply-to: cygwin-xfree at cygwin dot com

I find it convenient to have a single icon in my Windows task bar 
that, when clicked, opens an xterm window without me having to know 
or care about whether or not Xserver is already running. My icon is 
associated with Cygwin's X11's standard startxwin.bat script that 
essentially runs the following two commands (edited here for clarity):

  \cygwin\bin\run XWin -multiwindow -clipboard -silent-dup-error
  \cygwin\bin\run xterm -e /usr/bin/bash -l

This script is designed to do what I want: The first command starts 
Xserver, which is smart enough to detect whether another instance is 
running and to die if it is. Its (undocumented) -silent-dup-error 
switch, no doubt, is supposed to cause Xserver to be silent about 
dying, which is what you want for this scenario. The second command, 
then, starts xterm in the presence of a single Xserver.

This script has worked fine until I upgraded Xserver from 6.8.2.0-4 
to 6.8.99.901-1. Now Xserver is rather unsilent in the presence of 
another instance, displaying a Windows alert box ("A fatal error has 
occurred and Cygwin/X will now exit..."; see attached) and creating 
a /tmp/XWin.log file.

I was hoping to learn whether this behavior is considered a bug or 
not and, if it is, whether it's under consideration for a fix.

BTW, this change was mentioned in two previous posts--by Chuck on 7/12 
("Xwin.log error") and by me on 7/17 ("fatal error with X Server 
6.8.99.901-1")--but neither post illicited a satisfactory response. 
Please forgive me for making one additional attempt.

--Ken Nellis

Attached: cygcheck.out, XWinAlert.bmp
Attachment: cygcheck.out
Description: Binary data
Attachment: XWinAlert.bmp
Description: Windows bitmap


--
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/



Re: "cannot open display"

2006-09-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Ogogon !!! on 9/9/2006 4:24 AM:
> Good afternoon, colleagues!
> 
> I have established CygWin to compile under Windows the program developed
> in gcc. At compilation of console applications - all OK. All
> applications, even rather complex, are started and work without remarks.
> 
> However, any attempt to create the program with GTK+, leads to that at
> their start there is a message "Gtk-WARNING **: cannot open display:".
> At distribution kit CygWin there is a program gtk-demo.exe. Obviously,
> it it is guaranteed it is compiled without mistakes. It is not started
> and also writes "Gtk-WARNING **: cannot open display:".

Then it is probably an X problem, and you asked the wrong list.  Try
cygwin-xfree; redirecting accordingly.

> 
> My OS - WindowsXP Pro (Rus). What do I do incorrectly?

Probably forgot to set up X.  And also didn't follow these directions:
> Problem reports:   http://cygwin.com/problems.html

Including the output of 'cygcheck -svr' as a text attachment would have
told us what the real problem was.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFAtnT84KuGfSFAYARAptMAJ9I6SZIelcwaaVdsNbFw/WVdotYjACgxYbG
emxh/luTjLE9VRQG193V2l8=
=CuEC
-END PGP SIGNATURE-

--
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/