.DESKTOP

DESKTOP File

XDG Desktop Entry File
Ask a question
QUICK ANSWER

A .desktop file is a Linux application launcher - the equivalent of a Windows .lnk shortcut. It is a small plain-text file that tells desktop environments like GNOME or KDE what command to run, which icon to show, and where to place the app in the menu. Open one in any text editor to read or edit it; to execute it, mark it executable first with chmod +x.

Developer: freedesktop.org (XDG - Cross Desktop Group) Category: Misc Files Open standard MIME: application/x-desktop
OPENS ON Windows Linux
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Jun 21, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DESKTOP file format?

.desktop files are application launcher shortcuts used across Linux and Unix desktop environments that comply with the freedesktop.org XDG (Cross Desktop Group) specifications. They serve as the Linux equivalent of Windows .LNK shortcut files, defining how an application is launched, displayed, and categorized in application menus, taskbars, and file managers.

The format is a plain UTF-8 text file in INI/key-file syntax, beginning with a required [Desktop Entry] section header. Mandatory keys are Type (typically Application, Link, or Directory) and Name (the display label shown in menus). Common additional keys include Exec (the launch command), Icon (icon name or path), Categories (FDO menu categories), MimeType (file type associations), and Terminal (whether to open a terminal window). Locale-specific translations are declared inline with bracketed language codes such as Name[de]= or Name[fr]=. Additional [Desktop Action X] sections define quick-action entries shown in right-click menus.

System-wide .desktop files are installed to /usr/share/applications/; per-user launchers live in ~/.local/share/applications/. All major Linux desktop environments implement the specification, including GNOME, KDE Plasma, Xfce, MATE, and Cinnamon.

Because .desktop files can execute arbitrary shell commands via the Exec key, modern desktop environments warn or refuse to run .desktop files that have not been explicitly marked executable by the user.

Security & safety

RISK: MEDIUM

.desktop files can execute arbitrary shell commands via the Exec key. A malicious .desktop file disguised as a document can run malware on Linux. GNOME, KDE, and Xfce now require the file to have the executable permission bit set and show a warning prompt before executing downloaded .desktop files. Never mark a .desktop file from an untrusted source as executable.

Format details

in a nutshell
FULL NAMEXDG Desktop Entry Fileaka .desktop file, desktop entry
DEVELOPERfreedesktop.org (XDG - Cross Desktop Group)since 2001 (freedesktop.org Desktop Entry Specification 0.9.x)
CATEGORYMisc Files
MIME TYPEapplication/x-desktop
TYPEINI-style text configuration file (application launcher/shortcut)
STANDARDOpen · royalty-free
This extension is also used by…
  • DesktopX Widget/Theme File - Stardock DesktopX (Windows, discontinued ~2005, EOL on Windows 10+) used .desktop for exported widget packages - entirely unrelated to the Linux XDG format.

Programs that open DESKTOP files

Windows1 app
Notepad / any text editor Built-in Right-click > Open with > Notepad to view the INI-style contents. The file cannot launch an app on Windows.
Linux2 apps
Any text editor (gedit, Kate, nano, VS Code) Open-source Open .desktop file in a text editor to view/edit the key=value pairs. To execute, make it executable first: chmod +x file.desktop, then double-click in the file manager.
GNOME Files (Nautilus) Open-source Double-click .desktop file; GNOME shows a 'Trust and Launch' dialog. To edit, right-click > Open With Text Editor.

Technical details

deep spec
EncodingUTF-8 text
MIME typeapplication/x-desktop
ContainerINI/key-file format (XDG Desktop Entry Specification)
File signature[Desktop Entry] group header as first non-comment line
Specificationfreedesktop.org Desktop Entry Specification 1.5 (2020); backward-compatible with 1.0-1.4
Required keysType (Application | Link | Directory) and Name
Common optional keysExec, Icon, Categories, MimeType, Terminal, StartupNotify, Actions
Locale supportInline bracketed language codes - e.g., Name[de]=, Name[fr]=
Quick actions[Desktop Action X] sections define right-click context-menu entries
System install path/usr/share/applications/ (global) or ~/.local/share/applications/ (per-user)
Typical file sizeUnder 2 KB
Security noteExec key can run arbitrary commands; modern desktop environments require the executable bit set before running untrusted .desktop files
Supported environmentsGNOME, KDE Plasma, Xfce, MATE, LXDE/LXQt, Cinnamon, and all freedesktop.org-compliant Linux/Unix desktop environments
Released2001 (freedesktop.org Desktop Entry Specification 0.9.x)
Latest versionDesktop Entry Specification 1.5 (2020)
Open standardYes · royalty-free
Specificationspecifications.freedesktop.org

DESKTOP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DESKTOP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DESKTOP files.

Frequently asked questions

What is a .desktop file on Linux?
It is an application launcher file defined by the XDG Desktop Entry Specification. It tells the desktop environment the app's name, icon, launch command, and category - the Linux equivalent of a Windows .lnk shortcut.
How do I create a .desktop launcher for my application?
Create a text file (e.g. myapp.desktop) with a [Desktop Entry] section containing at minimum Type=Application, Name=My App, and Exec=/path/to/myapp. Save it to ~/.local/share/applications/ and run 'update-desktop-database ~/.local/share/applications/'.
Why does double-clicking a .desktop file open a text editor instead of running the app?
The file needs to have the executable permission: run 'chmod +x myapp.desktop' in the terminal. Some file managers (Nautilus) also require you to click 'Trust and Launch' on first run.
Can I open a .desktop file on Windows?
You can view its text contents in Notepad, but it cannot launch an app on Windows - .desktop files are Linux-only launchers. Windows uses .lnk files for shortcuts.
What is the XDG Desktop Entry Specification?
A standard by freedesktop.org (XDG project) that defines the format for application launchers on Linux desktops. Version 1.5 is current (2020). All major Linux desktops (GNOME, KDE, Xfce, etc.) implement it.

References

1freedesktop.org - Desktop Entry Specification 1.5specifications.freedesktop.org
2Arch Linux Wiki - Desktop entrieswiki.archlinux.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.BINCD/DVD Disc Image (BIN/CUE)
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.XDWDocuWorks Document

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z