X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Paul Mallas <pmallas@rsmas.miami.edu>
Subject:  Re: using chere
Date:  Thu, 21 Jun 2007 10:09:26 -0400
Lines: 73
Message-ID: <f5e0qn$ten$1@sea.gmane.org>
References:  <f5c30k$v3t$1@sea.gmane.org> <514926.2846.qm@web25006.mail.ukl.yahoo.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
In-Reply-To: <514926.2846.qm@web25006.mail.ukl.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

I had a similar problem with chere and xterm.

Chere edits your Windows registry file. It added this to my registry:

C:\cygwin\bin\run.exe C:\cygwin\bin\xterm.exe -e /bin/xhere 
/bin/bash.exe "%L"

This sits in the registry at 
HKEY_CLASSES_ROOT/Directory/shell/cygwin_bash/command

I added -display 127.0.0.1:0.0 to the command line:

C:\cygwin\bin\run.exe C:\cygwin\bin\xterm.exe -display 127.0.0.1:0.0 -e 
/bin/xhere /bin/bash.exe "%L"

and it works fine for me now.

Since we are on the topic - is there a way to do something similar 
inside an open windows folder rather than from the folder icon?  I would 
find that much more convenient.


Marco Atzeri wrote:
> --- Lewis Hyatt <lhyatt@princeton.edu> ha scritto:
> 
>> Lewis Hyatt wrote:
>>
>>> OK, one last thing, sorry. I did something wrong
>> with the last test. If 
>>> I add c:\cygwin\bin and c:\cygwin\usr\X11R6\bin to
>> the Windows PATH 
>>> variable, then chere does work to open up an
>> xterm!
>>> So I guess the only question is: is there any way
>> to avoid this 
>>> requirement? It would be helpful for me if I
>> didn't have to add these to 
>>> the path. I'm not sure how chere is implemented,
>> but could it just set 
>>> these variables before calling the xterm? Thanks
>> again.
>>
>>
> I do not remenber exactly how I solved the issue,
> but it is was related to advise xterm/rxvt where the 
> bash shell is; as cygwin %PATH is loaded by bash 
> and rxvt is loaded before.
>  
> what "chere -r" says ?
> 
> for me is:
> 
> OS is CYGWIN_NT-5.1
> chere version 0.7
> run.exe is available at C:\cygwin\bin\run.exe
> <CUT>
> --- bash keys ---
> Directory menu item (all users)
> &Bash Prompt Here
> 
> Directory command (all users)
> C:\cygwin\bin\run.exe C:\cygwin\bin\rxvt.exe 
> -fg white -bg black -e /bin/xhere /bin/bash.exe "%L"
> 
> 
> Regards
> Marco
> 
> 
> 
>       ___________________________________ 
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html
> 


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

