Launch Application from Any Terminal or Create Shortcut in Linux

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

This post though created using Ubuntu, should be applicable to all *nix distros.

If you install or compile a non-native linux application (third party app), there are times when the installation would not create a shortcut for itself in your start menu and you have to launch the application by going to its directory.

To fix this problem you have two options

  1. Create a shortcut (symbolic link) for the application in /usr/local/bin: This enables you to launch the application from any terminal window.
  2. Once you have created the shortcut in /usr/local/bin you can add a Desktop or Start Menu launcher / shortcut.

For step 1: Run the command

cd /usr/loca/bin

Now in the code below replace the “absolute_path_to_the_application_executable” and “name_of_the_shortcut” with appropriate details of your application.

ln -s /absolute_path_to_the_application_executable name_of_the_shortcut

For Step 2: To add a new shortcut entry in the start menu, right click on the Main menu bar and select Edit Menus.

This would open the Menu Editor similar to the one shown below

Now to add a new entry select the category you want to add to and then click on +New Item

Now enter the details of the application you want to create a shortcut for. Thats it!

You might also like

Installs or Update Multiple Linux Distros from One Disc Using NetbootCD Tired of downloading...
Best Looking Linux Distribution – Mint Linux? While there...
How to Install / Update Linux Driver for HP Printers / Scanners Most *nix distros...
Add Launch Terminal Here Context Menu in Nautilus Launch terminal...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!


Copyright © 2018 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes