Ubuntu add desktop shortcut to favorites

Lets say you have installed an application using an executable file and not the repositories. If you launch such an application and try to add it to favorites in the Ubuntu dock, you wont find such an option in the context menu:

I dont know why you cannot add to dock custom applications by default. And the only way to add it is to create a launcher manually.

For that, you need to create ayourapp.desktopfile in/usr/share/applications/:

sudo nano /usr/share/applications/yourapp.desktop

Paste the following content:

#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/path/to/yourapp Name=YourApp Comment=Description of YourApp Icon=/path/to/yourapp.png

Replaceyourappwith your application and save by pressingCtrl+O,EnterandCtrl+X.

Make this file executable:

sudo chmod +x /usr/share/applications/yourapp.desktop

Log out and log in.

Open the Ubuntu Dash menu and you should be able to find your custom application in the menu. You can launch it from the menu.

Also, if right-click on it, you should be able to select Add to Favorites and pin it to the dock panel:

Now, when you close this application, a quick launcher will stay in the dock panel.

Share this:

Print

Related

  • How to install Google Earth on Ubuntu | LinuxTechCrunch | Linux Software | Linux Software Download | Linux Software Tutorials
  • 2011/12/25
  • In "google-earth"
  • How to Install Java Runtime Environment JRE in Ubuntu 10.10 Maverick using PPA|Ubuntu Geek
  • 2012/03/15
  • In "jdk"
  • Commands used in Try Docker
  • 2017/04/16
  • In "LearnNotes"

Video liên quan

Chủ Đề