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