This quick tip shows you how to get rid of two Google Chrome icons from the dock in Elementary OS Freya.
I hardly use the default Midori browser in Elementary OS Freya as Google Chrome is my main browser across all OSes. While Midori is kept in the dock by default, you’ll have to search for Google Chrome in Slingshot (applications) every time you want to open Google Chrome. To save time, I presume you have selected the “keep in dock” option for a quick access to Chrome.
The problem here is that when you click on the Chrome icon in the dock, it creates another instance of Google Chrome. This leaves you with two Chrome icons in the docks and this is something that might be ignored by many but definitely an annoyance and against the design. If you share the same feeling, let’s see how can we remove the second Google Chrome icon.
Remove two Google Chrome icons from dock in Elementary OS Freya
Step 1:
Remove Google Chrome from the dock.
Step 2:
Open the terminal and use the following command:
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications
Step 3:
Next we need to edit the google-chrome.desktop file. Use the following commands:
scratch-text-editor ~/.local/share/applications/google-chrome.desktop
It will open theย google-chrome.desktop file in Scratch for editing. Under theย [Desktop Entry] section, add the following line:
StartupWMClass=Google-chrome-stable
It will look a bit like this:
Step 4:
Go to Slingshot and open Google Chrome again. Do select “keep in dock” again. Close it and start it again to verify that it doesn’t open a new Chrome instance in the dock. No reboot of system is required here.
I hope this quick tip helped you to remove multiple Google Chrome icons from dock in Elementary OS Freya. Feel free to ask your questions and drop your suggestions in the comment below.