Roger Lipscombe 2013-03-06 20:24
I'm using a solution derived from http://www.hanselman.com/blog/AwesomeVisualStudioCommandPromptAndPowerShellIconsWithOverlays.aspx to set my PowerShell console icon.
It works fine to set the console window icon, but the icon doesn't always stay set on an Ultramon taskbar. On the normal taskbar, it's fine.
This: https://github.com/rlipscombe/WindowsPowerShell/blob/master/Microsoft.PowerShell_profile_ConsoleIconBug.ps1
...should be enough to reproduce the problem. I've cut it down from my normal profile (which is in the same repository). You'll need the contents of the Icons folder as well.
|
Roger Lipscombe 2013-03-06 20:24
Windows 7, 64-bit, by the way.
|
Christian Studer 2013-03-07 01:30
I've noticed that if you have the shell window on the monitor with the UltraMon taskbar and then change the icon, UltraMon won't pick up the change. But if you move the shell to the other monitor and back UltraMon will then use the correct icon. Is that the issue you're seeing?
Christian Studer - www.realtimesoft.com
|
Roger Lipscombe 2013-03-11 20:30
Yep. That's pretty much it.
Also: I've got a hack in the script that sends the WM_SETICON (attempting to reapply the icon) whenever the prompt is refreshed, and this causes the behaviour to be intermittent -- sometimes the icon is shown, sometimes not.
|
Christian Studer 2013-03-12 09:02
I'll look into this for the next release.
Christian Studer - www.realtimesoft.com
|
Roger Lipscombe 2013-03-14 00:03
Thanks.
|