delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/18/12:05:24

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: rvxt-20050409-1 console problem [SUMMARY]
Date: Thu, 18 May 2006 10:27:44 -0500
Lines: 20
Message-ID: <e4i3pg$vdb$1@sea.gmane.org>
References: <Pine DOT GSO DOT 4 DOT 63 DOT 0605151043130 DOT 26103 AT access1 DOT cims DOT nyu DOT edu> <44695649 DOT 9080001 AT cwilson DOT fastmail DOT fm> <446C153A DOT 9000105 AT cwilson DOT fastmail DOT fm>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5 (X11/20051201)
In-Reply-To: <446C153A.9000105@cwilson.fastmail.fm>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Charles Wilson wrote:
> I'm leaning toward this solution, in a more generic sense, like:
>    "gui-switcher.exe --config=/etc/rxvt-selector.conf"
> 
> It'll go into the checkX package since it'll leverage a lot of the same 
> code.  And that's why I need to track down these issues with 
> rxvt-unicode-X+run+loginShell...'cause if they are not solved with 
> run.exe, they'll show up again with gui-switcher.exe.

I know this isn't an "ideal" solution, but have you considered fork()ing 
and exec()ing 'checkX' and using wait() to get the return code? That 
would require your app to have checkX installed but would avoid 
duplicating the code and/or having to library-ize it (i.e. would be 
faster to implement).

OTOH a lib (or static lib) is generally not a bad idea.

-- 
Matthew
Hey, buddy, if it's OT, TITTTL!


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

- Raw text -


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