DEV Community

Cover image for Manually add an appimage software shortcut to application menu in linux
tinega
tinega

Posted on • Edited on

Manually add an appimage software shortcut to application menu in linux

I am going demonstrate how you can add an appimage application shortcut to linux desktop system's application menu and also how to customize its icon.But first lets get to understand what an appimage software is.

What is an appimage application and what are its benefits

For starters,there are many ways an application can be installed in a linux system i.e deb packages,snaps,flatpaks and appimages.Our focus today is appimages.
An Appimage application is a single portable and executable software that can be run on linux without installation.

Benefits of using appimages

  • Compatibility with most linux distributions.
  • Simple to run i.e download,make it executable and run.since it is not installed no system libraries are altered.
  • Download and use trusted software directly from the original author(s).
  • Uninstalling is as simple as just deleting the file.

Running an app image

Lets download the fluent reader software(it is a modern rss reader) as an example.
Alt Text
Once download is completed,navigate to the downloads folder and right-click on the downloaded appimage file,click on Properties thereafter,Click on the permissions tab and check the execute option.
Alt Text
The software should be running by now without any problems.

Adding a shortcut with custom icon to the linux application menu

Note: super user permission is required for this process.

  • Open the terminal
  • Navigare to the /usr/share/applications directory.
  • Create a new file with a .desktop extension in the applications directory.
  • Open the file with gedit Alt Text
  • Add the following template text to your empty file and replace with the location of your exec(i.e appimage location) and icon of your choice.eg Alt Text
  • Save your file and exit the terminal.

You should be able to see your software shortcut in the menu and it should run when clicked if you followed the steps above correctly.

Thanks and have fun ☺️

Top comments (5)

Collapse
 
naruaika profile image
Naufan Rusyda Faikar

Great! I tend to put an app desktop shortcut at ~/.local/share/applications/ when it comes to a user-level app; instead of having it at /usr/share/applications. Or we might consider to put the .AppImage file at /opt or /usr/bin.

Collapse
 
websilvercraft profile image
websilvercraft

Nowdays in ubuntu, you have AppImageLauncher, which handles it automatically when you click on an AppImage file.

Collapse
 
tinegagideon profile image
tinega

Thanks a bunch for this! Guys here is more options on how to do it

Collapse
 
snlucas profile image
Lucas S Nogueira

Man, your post is really easy to follow. Thx!

Collapse
 
mhsaghatforoush profile image
Mohammad hosein Saghatforoush

thanks man