70

I want to add a custom program to the favourites of Ubuntu dock, but there is no option for that.

enter image description here

Translating the text in this image (same as above) only says:

  1. All windows

  2. Quit

It also doesn't appear in "Show Applications":
enter image description here

Is there a way for adding the program to both Favourites and Applications menus?

pomsky
  • 70,557
Elgirhath
  • 803

1 Answers1

96

This is fairly easy. First, make a desktop application file that follows the freedesktop.org spec, e.g.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=MyApplication
Comment=My fancy new application
Exec=my_application
Icon=my_application.png
Terminal=false

If you want this to be usable by anyone on your system, put it in /usr/share/applications. For personal use only, you can put it in ~/.local/share/applications. Look in /usr/share/applications for other examples. Add your icon image to the /usr/share/icons directory, or I assume the ~/.local/share/icons, although I have not tried that last location myself.

Then, you can search for the application by name and drag it to the launcher in the usual way!

Martin W
  • 2,675