Desktop Entry File Generator
Name: Generic Name: Comment: Version: Path: Exec: Icon:
Terminal:
Type: [Desktop Entry] Name=GenericName=Comment=Version=Path=Exec=Icon=Terminal=falseType=Application What is a .desktop file?
On Linux, a .desktop file is a small configuration script that tells your desktop environment (like GNOME, KDE, or XFCE) how to handle a program. Without one, your app won't appear in your Application Launcher or Dock.
How to Use This Generator
- Fill the Fields:Enter the app name, the path to the executable file.
- Copy: Copy the generated code and paste it into a new file.
- Save and Move the File: To make the app visible to your system, save the file to the following directory: ~/.local/share/applications/
- Make it Executable: Open your terminal and run: chmod +x ~/.local/share/applications/your-file-name.desktop
Pro Tips for Success
- Absolute Paths: Always use full paths (e.g., /home/user/apps/my-app) rather than relative paths (e.g., ./my-app).
- The Icon: For the best look, use a .png or .svg file. Most system icons are 48×48 or 64×64 pixels.
- Terminal Apps: If you are making a shortcut for a CLI tool, be sure to check the "Terminal" option.