Fix double google chrome icon in docky and plank
After the update to Chrome 35 and again with the update to 36 I discovered the launcher in docky and plank wasn't matching the chrome window correctly anymore. So it would show the launcher with a nice icon and then the actually launched app with a very low quality icon. Luckily, it's a simple fix... so let's get started. Open a terminal and type:
|sudo gedit /usr/share/applications/google-chrome.desktop|
You'll find 3 entries in this file, [Desktop Entry], [NewWindow Shortcut Group] and [NewIncognito Shortcut Group]. Make sure that under each group there's the following line, it doesn't matter where in the group it is.
For convenience, here is the modified chrome.desktop file for Ubuntu 14.04 Trusty Tahr. Just replace it with the one you have in /usr/share/applications/.
Now remove the chome launcher from docky or plank and stop docky or plank. If you're using docky, remove the docky cache folder ( ~/.cache/docky ) and start docky again.
If you're using plank, there's no need to remove the cache folder. When you pin the launcher again, it should match successfully.
To read more, please refer to this article on the docky wiki.
In case you keep having trouble, have a look in ~/.local/share/applications and remove google-chrome-stable.desktop from there if you find it.
Aother option is a script someone wrote and brought to my attention in the comments:
You can find it here: https://gist.github.com/Garont/46ce0d3a21471bc974fe