Create shortcut for your desktop in GNU-Linux

Table of Contents

How to create shortcut for any executable in GNU-Linux.

Step 1: Create a file with “.desktop” extension.

[your_application_name].desktop

Without the square bracket!

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=[Your complete path to the executable]
Name=[Name of your application, this will appear at desktop]
Comment=[Any comments]
Icon=[Path to the icon to be used]

Add this inside the file.

Step 2: Allow to execute.

Right click over your .desktop file and under properties allow this file to be executed.

Step 3: Copy to your shortcut containing directory.

In my desktop in found that under

/home/.local/share/applications/

are shortcut files so cp [your .desktop file] [to .local/share/applications/]

And you’re done!!

Tags :