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
  • 70,934
  • 124
  • 466
  • 653
David Faux
  • 777
  • 3
  • 10
  • 17

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
  • 15,924
  • 18
  • 67
  • 103
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
  • 70,934
  • 124
  • 466
  • 653
waspinator
  • 4,572
  • 7
  • 28
  • 36
  • 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
  • 193,181
  • 53
  • 473
  • 722
Saber
  • 151
  • 7
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