How to add any file to the application launcher.

Some of the software that I use comes packaged as .AppImage files. For these I will usually create .dektop files to make them available in the launcher.

Create a desktop file at ~/.local/share/applications and and add application information such as application path, icon path, etcetera.

The 'Exec' parameter takes field codes to pass file paths or urls to the executed application.

Code Description
%f A single file name including the path.
%F A list of files.
%u A single URL.
%U A list of URLs.

Example

[Desktop Entry]
Type=Application
Name=Ripcord
Comment=Ripcord Chat Client
Exec=/home/rostiger/bin/Ripcord.AppImage
Icon=/home/rostiger/bin/Ripcord.png
Terminal=false
Categories=Communication

To learn how to associate a program to a file type, see mime types.
To extract a .desktop file run

./appName.AppImage --appimage-extract

It will create a directory called squashfs-root. Inside you fill find the .desktop file.

Links

incoming(3) | gnome programs | gemini | mime