www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/03/05:23:39

X-Recipient: archive-cygwin AT delorie DOT 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: <4B407018.2080702@gmail.com>
Date: Sun, 03 Jan 2010 10:23:20 +0000
From: Dave <kilroyd AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.23 (X11/20091126)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.1: Does 'chere' work with Vista 64b? Can't tell by me.
References: <4B364CEE DOT 6090806 AT veritech DOT com> <4B37E341 DOT 2010007 AT cygwin DOT com> <4B392862 DOT 1000605 AT veritech DOT com> <4B392CF7 DOT 1030404 AT cygwin DOT com> <4B393DE0 DOT 9030400 AT veritech DOT com> <4B396241 DOT 5080406 AT cygwin DOT com> <4B3B2A20 DOT 3080602 AT gmail DOT com> <4B3C7901 DOT 5020203 AT veritech DOT com> <4B3CB391 DOT 8070304 AT gmail DOT com> <4B3D0FA5 DOT 1030908 AT veritech DOT com>
In-Reply-To: <4B3D0FA5.1030908@veritech.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Lee D. Rothstein wrote:
> Dave wrote:
> 
>  > So chere has managed to set the keys, and read them back fine. What
>  > happens when you run the following command in cmd (all one line)?
> 
>  > C:\_0\bin\mintty.exe --icon=c:\_0\cygicons-hippo-vista-0.dll,10 - -e
>  > /bin/xhere /bin/bash.exe "c:\Program Files"
> 
> I think 'mintty'/'bash' window flashes open and closed. Menu item
> for Cygwin remanined cygwin_bash. Command doesn't work in exactly
> the same way as before.
> 
>  >> If you're out of ideas, might you give me some clues to look for
>  >> bad keys in the registry?
> 
>  > Check HKEY_CLASSES_ROOT\Directory\Shell\cygwin_bash. It's value should
>  > be the context menu item text, "Mintty Bash"
> 
> Value was null.
> 
>  > It should have one subkey, command, whose value is the command to run
>  > "c:\_0\bin\mintty ...".
> 
> Value was null.

Either registry virtualisation, or redirection is interfering.

<http://msdn.microsoft.com/en-us/library/bb530198.aspx>
<http://msdn.microsoft.com/en-us/library/ms724072%28VS.85%29.aspx>

My guess is the latter. This is consistent with Larrys' report of chere
working on 64 bit Windows 7, as Microsoft states HKLM/SOFTWARE/Classes
is shared on W7 and redirected+reflected on vista, server 2003, server
2008, xp. <http://msdn.microsoft.com/en-us/library/aa384253%28VS.85%29.aspx>

I'm not on windows right now, but does regtool have the ability to
control redirection/reflection or whether it writes to the 32/64 bit
version of the key? That's what chere would need to operate correctly.
Otherwise it needs to resort to outputting a .reg file and installing it.

> However, your registry key comments were helpful.  Okay, now
> we're gettin' somewhere. Where? You tell me.
> 
> When I 'regedit'ed the registry with what you specified in the
> above paragraphs, using "Mintty_Bash" &:
> 
>   C:\_0\bin\mintty.exe --icon=c:\_0\cygicons-hippo-vista-0.dll,10 -
> 
> the 'mintty'/'bash' window opens, but not to the folder indicated.


Did you include the '-e /bin/xhere /bin/bash "%L"'? That's the bit that
selects the folder.

Dave.

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