X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <20090929210755.vprw8jp2yow0kcw8@webmail.u-picardie.fr>
Date: Tue, 29 Sep 2009 21:07:55 +0200
From: FyD <fyd@u-picardie.fr>
To: cygwin@cygwin.com
Subject: Re: Wish/tcltk & DISPLAY is not set
References: <20090929131427.3sc5fitfs4os00sk@webmail.u-picardie.fr> 	<200909291350.38734.aluaces@udc.es> 	<20090929150232.efr54x2tlww8kwkc@webmail.u-picardie.fr> 	<4AC23090.6070304@cygwin.com>
In-Reply-To: <4AC23090.6070304@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; 	charset=UTF-8; 	DelSp="Yes"; 	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Internet Messaging Program (IMP) H3 (4.1.6)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Quoting "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>:

>>>> When I execute "wish" under cygwin (wish test.tcl), I get the following
>>>> error message:
>>>>
>>>> /usr/bin/xterm: DISPLAY is not set
>>>>
>>>> I think this problem has been reported in 2006 @
>>>> http://cygwin.com/ml/cygwin/2006-02/msg00090.html
>>>> &
>>>> http://www.mail-archive.com/cygwin@cygwin.com/msg65756.html
>>>>
>>>> I checked my tcltk version in my cygwin install:
>>>> it is tcltk/tcltk-20080420-1
>>>>
>>>> Does it mean that this problem reported in 2006 was not corrected in
>>>> the 2008 version ? or do I miss something ?
>>
>>
>>> Do you have the X server running?
>>
>> Yes, I obviously started the X server of Cygwin (- using startxwin.sh)
>
> So you either:
>   A. Didn't set DISPLAY appropriately in the shell you're starting
> 'wish' from.
>   B. Didn't start 'wish' from the 'xterm' that gets started with
> 'startxwin.sh'.


So I should miss something because I think what I did is correct ;-)

- I start cygwin using the icon from the Windows 7 desktop
(bash shell is used; full cygwin install was carried out)

- in my .bashrc I do have:
export DISPLAY=3D127.0.0.1:0.0

- the command "echo $DISPLAY" gives in this black terminal:
127.0.0.1:0.0

- I execute startxwin.sh in this black terminal

- from the new xterm opened (white), I execute "wish tmp.tcl"
I get:
/usr/bin/xterm Xt error: Can't open display:
/usr/bin/xterm:  DISPLAY is not set

Where is the problem ?

If I execute: export DISPLAY=3D127.0.0.1:0.0 in the x-terminal (white)
& run again "wish tmp.tcl", I get the same error message...

Thanks, regards, Francois

PS We are two different persons having this same problem.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

