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?

Jorge Castro
  • 71,754

4 Answers4

25

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

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

Agmenor
  • 16,214
12

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

enter image description here

Jorge Castro
  • 71,754
waspinator
  • 4,722
  • 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 '14 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/
    
muru
  • 197,895
  • 55
  • 485
  • 740
Saber
  • 161
0

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

hotheadhacker
  • 471
  • 4
  • 7