I am a new Ubuntu user. I just installed 12.04. To get Chrome on the Launcher, I clicked the BFB and searched for Chrome, then dragged that icon to the Launcher. However, when I run Chrome, it creates a second icon for the running chrome. Creating a second window creates a second triangle under the second Chrome icon, with the first icon not doing anything. It is also apparently not locked to the launcher and I can't remove it. Does anybody know how to remove the first icon? I have locked the second icon to the launcher and it seems to be working fine, but I don't want two icons.
3 Answers
I periodically run into this problem and variants of it, most recently on Ubuntu 14.04.
Here's what has worked for me in these cases:
- Close all Chrome windows (and choose Exit from the Chrome indicator menu, if you have one).
- Right click on all Chrome icons in the launcher and choose Unlock from Launcher.
- Open the Files application.
- Choose Location from the Go menu (or press Ctrl-L).
- Type
.local/share/applications
into the text field and press Enter. - You should see a number of files whose names contain "chrome" (or "chromium" if you're using Chromium instead of Google Chrome. Send these files to the Trash (but leave any other files in this folder alone).
- (You might have to log out and log back in at this point, but I don't think this is always necessary.)
- Open the Dash and type
chrome
. You should see only 1 entry. - Launch Chrome and lock to the launcher (by right clicking on the icon and choosing Lock to Launcher or by dragging the icon out to the right of the launcher and then back in at a different location).
- Close the Chrome window, and then use the launcher icon to reopen it. It should open normally and you should not see a 2nd icon appear.
-
Excellent answer. Can confirm, that this does still work as of Ubuntu 15.10 btw May 13, 2016 at 12:21
-
Please note, that when you have a lot of "chrome" apps then removing all the chrome-* files might be a lot of trouble.
Try listing all the apps using the following
cd ~/.local/share/applications
grep Name chrome*
There might be a line with something that is clearly not an app, in my case something with "Name=Chrome New Tab", remove that one and maybe clear out a few apps you are no longer using.
Restart Chrome, lock the item and quit/restart to see if issue is fixed.
I think this is a bug.
Try the following:
unity --reset-icons
The above command will reset the icons the way they were when you first installed Ubuntu.
or type:
gksu gedit /usr/share/applications/nautilus-home.desktop
and remove the following line:
OnlyShowIn=GNOME;Unity;
I hope this helps.
-
1Good idea, but.. didn't work. Found this while Googling... Jul 4, 2013 at 2:13