Skip to content

Instantly share code, notes, and snippets.

@kaesetoast
Created November 18, 2014 10:33
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kaesetoast/9f835778dce5b9e4e33c to your computer and use it in GitHub Desktop.
Save kaesetoast/9f835778dce5b9e4e33c to your computer and use it in GitHub Desktop.
Fix duplicate Chrome icon in Plank
sudo sed -i -r 's/(\[.+\])$/\1\nStartupWMClass=Google-chrome-stable/g' /usr/share/applications/google-chrome.desktop
@Gabriel-p
Copy link

WARNING:

this made a horrible mess in my system (elementary OS 0.2 Luna) Notices of corrupt profile, Chrome not opening anymore, wouldn't stayed logged in, etc.

Had to un-re-install Chrome and delete the file ~/.config/google-chrome/Default/Web Data file as instructed here to make everything go back to normal.

What did work in my case was the far simpler solution presented in the elementary site:

sudo cp -a /usr/share/applications/google-chrome.desktop /usr/share/applications/google-chrome-stable.desktop

then open:

google-chrome-stable

and pin the icon that appears.

@kaesetoast
Copy link
Author

Thanks for the heads up @Gabriel-p. Do you by any chance have a copy of the corrupted file that you could share? Would like to see what happend there. I'm aware of the alternative solution you mentioned. Unfortunately this only worked until reboot on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment