This might not satisfy you, but it at least explains where it comes from.
The Chrome/Gears API says the following:
desktop.createShortcut('Test Application',
'http://example.com/index.html',
{'128x128': 'http://example.com/icon128x128.png',
'48x48': 'http://example.com/icon48x48.png',
'32x32': 'http://example.com/icon32x32.png',
'16x16': 'http://example.com/icon16x16.png'},
'An application at http://example.com/index.html');
icons - An object containing one or more of these named properties: 128x128, 48x48, 32x32, 16x16. The value of each property must be the URL of a PNG-formatted image with dimensions matching the property name. A data URL containing base64-encoded PNG data can also be used.
So I guess right now it just uses something that's on the website where you link to. If they don't have a high quality version, you get the ugly one you mention. Replacing it would require you to change the link inside the shortcut.
Since this is already starting to get a tedious job, it's probably better to follow these steps:
Step 1: Save the icon on your computer
- You have already done this successfully I believe :)
- In your browser's addressbar, type in the domain of the website, followed by the text "favicon.ico" For example, if you want the icon for the Yahoo website, the
address to type is "http://www.yahoo.com/favicon.ico". Similarly, the
Google icon can be found at "://www.google.com/favicon.ico".
- Once you type in the address specified above, a page will
load containing only the icon for the website.
- Right click the picture and choose "save picture as.."
- Save all the icons in a central folder, say "My Documents\My Icons"
Now you have a permanent copy of the icon. The next step is to associate it with the shortcut.
Step 2: Associate the icon with the shortcut
- Right click on the website shortcut on your desktop
- From the popup menu that appears, choose "Properties"
- In the dialog box that appears, switch to the "Web Document" tab.
- Click the "Change Icon..." button present there.
- This will popup the Change Icon dialog which will allow you
to browse for and select the saved icon file.
- Then click Ok a couple of times and exit all the dialogs.
This probably requires Chrome to be your standard browser to open Web Documents with though!
With special thanks to Theta-ga
I recently found myself with a similar issue, and decided to script modification of the links as originally requested. Perhaps someone else will find this useful. This is a PowerShell script based on a previously mentioned link, but has some improvements (only triggers on the leading path name, modifies the existing link instead of deleting/creating, has a dry-run mode, etc).
I'm not particularly knowledgeable when it comes to PowerShell, so I welcome any suggestions for improvement:
$oldPrefix = "\\OldServer\Archive\"
$newPrefix = "\\NewServer\Archive\"
$searchPath = "Z:\"
$dryRun = $TRUE
$shell = new-object -com wscript.shell
if ( $dryRun ) {
write-host "Executing dry run" -foregroundcolor green -backgroundcolor black
} else {
write-host "Executing real run" -foregroundcolor red -backgroundcolor black
}
dir $searchPath -filter *.lnk -recurse | foreach {
$lnk = $shell.createShortcut( $_.fullname )
$oldPath= $lnk.targetPath
$lnkRegex = "^" + [regex]::escape( $oldPrefix )
if ( $oldPath -match $lnkRegex ) {
$newPath = $oldPath -replace $lnkRegex, $newPrefix
write-host "Found: " + $_.fullname -foregroundcolor yellow -backgroundcolor black
write-host " Replace: " + $oldPath
write-host " With: " + $newPath
if ( !$dryRun ) {
$lnk.targetPath = $newPath
$lnk.Save()
}
}
}
Best Answer
Windows really doesn't want to give you full access to these shortcuts (and they have good reasons). The problem is that you can't pin 2 of the same application. But what if we pin a second application to launch the first?
Google Chrome
to the taskbar as you would normally.Command Prompt
to your taskbar as well.%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
Command Prompt
shortcut and change the Target to:C:\Windows\system32\cmd.exe /c start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --incognito
Minimized
.Note: since Chrome running in incognito mode is still Chrome, it appears under the original Chrome icon, not the incognito one.
Surprisingly I'm now allowed to pin the command prompt to the taskbar again. I really did not expect that to work, since I already pinned it.
All if this is so difficult because you can't simply put any shortcut you want into the
%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
folder. From my searching, this post shows it best why. The shortcut data is written in the registry in binary.