How to Create a Shortcut on the Raspbian Desktop

Raspberry Pi + Raspbian

Sounds a weird question for any Windows / macOS user but on Raspberry Pi / Raspbian, it’s not an intuitive task. Fortunately, it’s actually easy, the only required skill is to know how to use a text editor.

To add a shortcut on the Raspbian desktop, create a file with the .desktop extension and name it as you want: MyKoolApp.desktop.

Here is the content of GeeXLab shortcut:

[Desktop Entry]
Comment=OpenGL demotool

The last thing to do is to put this .desktop file in the Desktop folder (/home/pi/Desktop/).

How to Create a Shortcut on the Raspbian Desktop

If you need to launch an application with admin rights, you can easily do it by adding sudo in the Exec entry:

Exec=sudo /home/pi/Downloads/GeeXLab_FREE_rpi_gl21/GeeXLab

If your application has command line options, you can also add them like you would do in command line. The .desktop file is also supported by Linux distributions such as Linux Mint.

Useful links:

One thought on “How to Create a Shortcut on the Raspbian Desktop”

Leave a Comment

Your email address will not be published. Required fields are marked *