Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-23 Thread Andy Koppe
2009/12/23 Lee Rothstein:
 Chris,

 Thanks for the reference. As I mentioned, it wasn't retrievable via Google.
 Strange.

 As you had stated earlier, the key to solving the problem is to reference:

  --icon=c:\_0\cygicons-hippo-vista-0.dll,10 in the shortcut

Hippo hippo hurray!


 Note to everyone, including Andy, the ICO file worked until Mintty v0.5.4.
 And, all my other ICO files seem to work with Mintty v0.5.5, including an
 earlier one, I had gerri-rigged.

Strange. I wonder what's different about the hippo. I might have a
look at implementing a fallback from 0.5.5's ExtractIcon call to
0.5.4's LoadImage.

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-23 Thread Chris Sutcliffe
 Note to everyone, including Andy, the ICO file worked until Mintty v0.5.4.
 And, all my other ICO files seem to work with Mintty v0.5.5, including an
 earlier one, I had gerri-rigged.

 Strange. I wonder what's different about the hippo. I might have a
 look at implementing a fallback from 0.5.5's ExtractIcon call to
 0.5.4's LoadImage.

If a fallback to LoadImage is added, keep in mind that LoadImage will
work with .ico files only.  AFAIK the issue with the hippo.ico file
had something to do with the compression of the PNG file used to
create the .ico file and the the fact that Vista is generally anal
retentive regarding compressed files.  As a result, as Chuck found,
'hiding' the icon in a DLL bypassed Vista's qualms about accessing an
icon that contained a compressed image.

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Andy Koppe
2009/12/22 Lee D. Rothstein:
 '--icon=c:\_0\hippo_xp.ico'  option now breaks mintty.

Works for me, with the icon placed in the same location. This is on
XP, and I tried it both in Cygwin 1.5 and 1.7.

What system are you on? How does it break? Can you run mintty with
that option from an existing mintty session and see whether it reports
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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Lee D. Rothstein

Andy Koppe wrote:

 2009/12/22 Lee D. Rothstein:

 '--icon=c:\_0\hippo_xp.ico'  option now breaks mintty.

 Works for me, with the icon placed in the same location. This is on
 XP, and I tried it both in Cygwin 1.5 and 1.7.

NB: c:\_0 is my root.

I just looked at the ownership/mode of hippo_xp.ico and it was
lr:none and 700. I changed it to lr:root and 777, and the Windows
shortcut still doesn't work. While lr is part of root
(Administrators), I don't run the shortcut with elevated
privilege.

 What system are you on?

--
$ uname -a
CYGWIN_NT-6.0-WOW64 GW2 1.7.0(0.218/5/3) 2009-12-04 17:08 i686 Cygwin
--
si ...

OS Name:Microsoftr Windows VistaT Home Premium
OS Version: 6.0.6002 Service Pack 2 Build 6002
--

 How does it break?

Screen flickers, nothing else happens.

 Can you run mintty with
 that option from an existing mintty session and see whether it reports
 an error?

No. No matter how I specify mintty or the icon on the command
line, 'mintty' cannot load the icon.

e.g., all of the following don't work:

$ mintty --icon=/hippo_xp.ico -
mintty: could not load icon -- /hippo_xp.ico

$ /bin/mintty.exe --icon=$(cygpath -ua 'c:\_0\hippo_xp.ico') -
mintty: could not load icon -- /hippo_xp.ico

...

yet:

$ ls -al /
...
-rwxrwxrwx+  1 lr root   46878 2009-12-05 08:26 hippo_xp.ico
...

$ mintty --version
mintty 0.5.5
...

WTF,O,

Lee

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Chris Sutcliffe
 e.g., all of the following don't work:

 $ mintty --icon=/hippo_xp.ico -
 mintty: could not load icon -- /hippo_xp.ico

 $ /bin/mintty.exe --icon=$(cygpath -ua 'c:\_0\hippo_xp.ico') -
 mintty: could not load icon -- /hippo_xp.ico

What happens if you do:

$ mintty --icon=/Cygwin.ico -

Do you experience the same behaviour?

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Andy Koppe
2009/12/22 Lee D. Rothstein:
 '--icon=c:\_0\hippo_xp.ico'  option now breaks mintty.

 Works for me, with the icon placed in the same location. This is on
 XP, and I tried it both in Cygwin 1.5 and 1.7.

 NB: c:\_0 is my root.

 I just looked at the ownership/mode of hippo_xp.ico and it was
 lr:none and 700. I changed it to lr:root and 777, and the Windows
 shortcut still doesn't work. While lr is part of root
 (Administrators), I don't run the shortcut with elevated
 privilege.

 What system are you on?

 --
 $ uname -a
 CYGWIN_NT-6.0-WOW64 GW2 1.7.0(0.218/5/3) 2009-12-04 17:08 i686 Cygwin

Sorry, I can't reproduce this on Vista or 7 either. Hippo looking happy.

Further to Chris's suggestion of trying Cygwin.ico, does it make a
difference if you copy the hippo elsewhere? Also, did the shortcut
work with mintty-0.5.4? (0.5.5 uses a different Windows function to
load the icon, but it's not immediately obvious why that might upset
the hippo.)

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Lee D. Rothstein

Chris Sutcliffe wrote:

e.g., all of the following don't work:

$ mintty --icon=/hippo_xp.ico -
mintty: could not load icon -- /hippo_xp.ico

$ /bin/mintty.exe --icon=$(cygpath -ua 'c:\_0\hippo_xp.ico') -
mintty: could not load icon -- /hippo_xp.ico



What happens if you do:

$ mintty --icon=/Cygwin.ico -
  

works!

Do you experience the same behaviour?

Chris

  



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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Lee D. Rothstein

Andy Koppe wrote:

2009/12/22 Lee D. Rothstein:
  

'--icon=c:\_0\hippo_xp.ico'  option now breaks mintty.


Works for me, with the icon placed in the same location. This is on
XP, and I tried it both in Cygwin 1.5 and 1.7.
  

NB: c:\_0 is my root.

I just looked at the ownership/mode of hippo_xp.ico and it was
lr:none and 700. I changed it to lr:root and 777, and the Windows
shortcut still doesn't work. While lr is part of root
(Administrators), I don't run the shortcut with elevated
privilege.



What system are you on?
  

--
$ uname -a
CYGWIN_NT-6.0-WOW64 GW2 1.7.0(0.218/5/3) 2009-12-04 17:08 i686 Cygwin



Sorry, I can't reproduce this on Vista or 7 either. 

64b Vista!


Hippo looking happy.

Further to Chris's suggestion of trying Cygwin.ico, does it make a
difference if you copy the hippo elsewhere?

No, it doesn't work there either!

Also, did the shortcut
work with mintty-0.5.4?

Yes.

(0.5.5 uses a different Windows function to
load the icon, but it's not immediately obvious why that might upset
the hippo.)
  
So, you're saying that not all Windows parties treat hippos equally. 
Tsk! ;-)


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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Chris Sutcliffe
 What happens if you do:

 $ mintty --icon=/Cygwin.ico -

 works!

I suspect this is related to an issue reported before with the hippo
icon (I assume it's the one Chuck mentioned in a previous email?).  I
don't remember the exact details, but I remember Vista not liking the
icon unless it was embedded in a dll (which Chuck subsequently
uploaded).

To use it, try:

mintty --icon=/cygicons-hippo-vista-0.dll,10

which will get you the hippo icon.

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Lee D. Rothstein

Chris Sutcliffe wrote:

What happens if you do:

$ mintty --icon=/Cygwin.ico -
  

works!



I suspect this is related to an issue reported before with the hippo
icon (I assume it's the one Chuck mentioned in a previous email?).  I
don't remember the exact details, but I remember Vista not liking the
icon unless it was embedded in a dll (which Chuck subsequently
uploaded).

To use it, try:

mintty --icon=/cygicons-hippo-vista-0.dll,10

which will get you the hippo icon.

  

 $ find /[a-ce-quv]* -name cygicons-hippo-vista-0.dll
 Google: cygicons-hippo-vista-0.dll
 Google: cygwin hippo icon dll

all reveal NADA!

What am I missing?


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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Chris Sutcliffe
  $ find /[a-ce-quv]* -name cygicons-hippo-vista-0.dll
  Google: cygicons-hippo-vista-0.dll
  Google: cygwin hippo icon dll

 all reveal NADA!

 What am I missing?

This email:

http://sourceware.org/ml/cygwin/2009-12/msg00234.html

The thread will also provide the background on what I was referring to.

Cheers!

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org

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



Re: 1.7: mintty 5.5.1 refuses to take hippos seriously ;-(

2009-12-22 Thread Lee Rothstein

Chris,

Thanks for the reference. As I mentioned, it wasn't retrievable via 
Google. Strange.


As you had stated earlier, the key to solving the problem is to reference:

 --icon=c:\_0\cygicons-hippo-vista-0.dll,10 in the shortcut

Note to everyone, including Andy, the ICO file worked until Mintty v5.5. 
And, all
my other ICO files seem to work with Mintty v5.5, including an earlier 
one, I

had gerri-rigged.

Thanks Andy, for the feature, it allows me to discrim among Mintty 
Windows and

cmd.exe Windows, much more easily.

Both I and my Hippo are very greatful.

Lee

Chris Sutcliffe wrote:

 $ find /[a-ce-quv]* -name cygicons-hippo-vista-0.dll
 Google: cygicons-hippo-vista-0.dll
 Google: cygwin hippo icon dll

all reveal NADA!

What am I missing?



This email:

http://sourceware.org/ml/cygwin/2009-12/msg00234.html

The thread will also provide the background on what I was referring to.

Cheers!

Chris

  



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