Hexa's Blog

How to create an application shortcut on Fedora?

06/06/2023 Linux

Inside $HOME, there is a directory named ~/.local/share/applications which containts all application shortcuts for the current user. To make a new application shortcut you need to make a new file named *.desktop with the following schema.

[Desktop Entry]
Type=Application
Name=Postman
Comment=Postman
Icon=/home/nguyenvinhlinh/Software/Postman-7.0.9/icon.png
Path=/home/nguyenvinhlinh/Software/Postman-7.0.9
Exec=/home/nguyenvinhlinh/Software/Postman-7.0.9/Postman
Terminal=false
Categories=Development;

To refresh/update application.desktop, you can use the following command:

update-desktop-database ~/.local/share/applications

If it all works correctly, a new application shortcut will be displayed on Gnome Search.

[1] GNOME Search
[1] GNOME Search