Created
December 28, 2023 02:19
-
-
Save HamidMolareza/a87d7d8ada0de8d48b3c06d97d30e6d6 to your computer and use it in GitHub Desktop.
A template for Ubuntu desktop entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a sample .desktop file for Your Application | |
# Add this to: ~/.local/share/applications/your_application.desktop OR /usr/share/applications/your_application.desktop | |
[Desktop Entry] | |
# Version of the Desktop Entry Specification | |
Version=1.0 | |
# Type of entry, should be "Application" for application launchers | |
Type=Application | |
# Display name of the application | |
Name=Your Application Name | |
# Sample for multi-language | |
Name[en_US]=Your Application Name (English) | |
# Generic name (more generic than the 'Name' field) | |
GenericName=Descriptive Name | |
# Brief description of the application | |
Comment=A brief description of your application | |
# Sample for multi-language | |
Comment[en_US]=A brief description of your application in English | |
# Path to the icon file | |
Icon=/path/to/your/application/icon.png | |
# Command to execute the application, %F for multiple file paths | |
Exec=/path/to/your/application/executable %F | |
# Working directory for the application | |
Path=/path/to/your/application | |
# Whether the application requires a terminal to run | |
Terminal=false | |
# Categories in which the application should be shown in the menu | |
Categories=Utility;Application;Development;OtherCategory | |
# MIME types supported by the application | |
MimeType=text/plain;application/x-extension; | |
# Keywords relevant to the application | |
Keywords=keyword1;keyword2;keyword3 | |
# Whether to use startup notification | |
StartupNotify=true | |
# WM_CLASS property to use to identify the main window of the application | |
StartupWMClass=YourApplicationName | |
# Version of the Desktop Entry Specification | |
X-Desktop-File-Install-Version=0.23 | |
# Optional keys for actions | |
Actions=Open;Edit; | |
# Action to open files | |
[Desktop Action Open] | |
Name=Open | |
Exec=/path/to/your/application/executable %F | |
Icon=/path/to/open/icon.png | |
# Action to edit files | |
[Desktop Action Edit] | |
Name=Edit | |
Exec=/path/to/your/application/editor %F | |
Icon=/path/to/edit/icon.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment