13

I recently installed Chrome on Ubuntu, and I can run Chrome via google-chrome on the command line.

However, how can I put a Chrome icon on my dock?

1

4 Answers 4

25

Search for Chrome in the menu and drag it to the dock.

Doing this, you don't need the command line at all.

1
  • I don't see it in the search anymore on Ubuntu 20.10.
    – khatchad
    Dec 5, 2020 at 14:51
12

Right click on the icon in the dock while it's running and select lock/add to favorites.

enter image description here

1
  • I wanted to do this, I started Chrome, but it didn't appear on the left band at all. Agmenor's method worked.
    – Pavel V.
    Oct 20, 2014 at 14:22
1
  1. Create a desktop file (e.g. chrome.desktop) on your Desktop and insert the following content into that file:

    #!/usr/bin/env xdg-open
    
    [Desktop Entry]
    Type=Application
    Terminal=false
    Exec=/usr/bin/google-chrome
    Name=Google Chrome
    Icon=/usr/share/icons/hicolor/48x48/apps/google-chrome.png
    
  2. Make it executable by running this command:

    chmod +x ~/Desktop/chrome.desktop
    
  3. Add it to the launcher:

    cp ~/Desktop/chrome.desktop ~/.local/share/applications/
    
1
  • This works to launch from the desktop, but does not work from the launcher. May 12, 2019 at 8:21
0

open Chrome-> right click on chrome icon from dock -> "Add to favorites". Refer to this Image if you're using ubuntu 17.10IMAGE

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .