I want to add a custom program to the favourites of Ubuntu dock, but there is no option for that.
Translating the text in this image (same as above) only says:
All windows
Quit
It also doesn't appear in "Show Applications":
Is there a way for adding the program to both Favourites and Applications menus?
This is fairly easy. First, make a desktop application file that follows the freedesktop.org spec, e.g.
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!