Create a desktop entry for any executable in linux

Published: by

Create a .desktop file

For current user

Create a app_name.desktop file in ~/.local/share/applications/ directory

For all users

Create a app_name.desktop file in /usr/share/applications/ directory

Copy and paste the follwing lines into file and change the data

[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=false
Name=My Application
Comment=This application does x work
Exec=/path_to_directory/myapplication
Icon=/path_to_directory/myapplication.png

Save the file and check the launcher if entry doesn't exist then sign out and login again.