delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/29/01:51:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_RX,TW_TK,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4CA1EFC6.6030202@dronecode.org.uk>
References: <4CA1C204 DOT 6090405 AT epfl DOT ch> <4CA1C3EE DOT 1030204 AT ece DOT cmu DOT edu> <AANLkTinm7jU3yC7FM+bQyp6FzwYoYb+M8L524bzFXGu=@mail.gmail.com> <4CA1EFC6 DOT 6030202 AT dronecode DOT org DOT uk>
Date: Wed, 29 Sep 2010 06:51:27 +0100
Message-ID: <AANLkTi=ukyqD=NRR=-eTX_vojsKbOVtenc0Ksv3fKfKr@mail.gmail.com>
Subject: Re: mintty window won't open
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 28 September 2010 14:38, Jon TURNEY wrote:
> On 28/09/2010 13:18, Andy Koppe wrote:
>> On 28 September 2010 11:31, Ryan Johnson wrote:
>>>> I switched from rxvt to mintty yesterday, and it worked great all day.
>>>> However, today when I try to open a new mintty window from within an
>>>> existing one, nothing happens. The process starts, but no window
>>>> appears. This happens when attempting to open both 0.8.3 and 0.9b2
>>>> windows from a 0.9b2 window. The broken window also does the same thing
>>>> to tkdiff but is able to run xterm without problems.
>>>>
>>>> Oddly, using the shortcut from the start menu (0.8.3) still works, and
>>>> any windows I fire up from it (including 0.9b2) work fine after that and
>>>> can in turn fire up their own new instances.
>>>
>>> I found the problem: the terminal was running an ssh session to
>>> localhost.
>>
>> Ah yes, that would do it.
>
> I think you can detect this situation (no access to the interactive desktop
> or whatever is it called), if you wished to issue a suitable error message,
> by checking that OpenInputDesktop() returns non-NULL...

Good idea, and that does seem to do the job.

Opening a window in that situation seems to work fine anyway though. I
guess it goes to some hidden desktop. Can anyone think of a sensible
use case for that, i.e. should I make this a warning rather than an
error?

Andy

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019