How to create a desktop launcher in GNU/Linux | Linux Today

How to create a desktop launcher in GNU/Linux

Written By
Web Webster
Web Webster
Jun 3, 2016

In the following article we’ll show you how to create a desktop launcher in GNU/Linux system.

What are Desktop Entries?

The freedesktop Desktop Entry specification provides a standard for applications to integrate into a desktop environment. Desktop entries are the configuration files that describe how an application is launched and which data it can handle. They also configure how an application appears in a menu with an icon, which is subject to the related menu specification standard.

The most common desktop entries are the .desktop and .directory files. This article explains how one can create a .desktop configuration file and easily create an application shortcut.

Desktop Application Entries

Desktop entries for applications, or .desktop files, are generally a combination of meta information resources and a shortcut of an application. These files usually reside in /usr/share/applications or /usr/local/share/applications for applications installed system-wide, or ~/.local/share/applications for user-specific applications. User entries take precedence over system entries.

Create Desktop Application

To create a new ApacheDirectoryStudio.desktop application, create a simple file containing something like this:

[Desktop Entry]
Name=Apache Directory Studio
Comment=LDAP Browser
Exec=/opt/apache-directory-studio/ApacheDirectoryStudio
TryExec=/opt/apache-directory-studio/ApacheDirectoryStudio
Icon=/opt/apache-directory-studio/ApacheDirectoryStudio.xpm
StartupNotify=false
Terminal=false
Type=Application
Categories=Network;

and install it using the xdg-desktop-menu command , for example:

xdg-desktop-menu install –novendor ./ApacheDirectoryStudio.desktop

That’s it

If you’re one of our Linux VPS Hosting customers we can help you create a desktop application shortcut on your virtual server free of charge. Just contact us and some of our experts will complete your request immediately.

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.