If you use Linux, you might often find yourself using the terminal to run programs and scripts for your daily tasks. But it can be a bit of a hassle. Luckily, there's a alternative – creating something called a "Desktop Entry." A desktop entry lets you start programs from your start menu with just a few clicks. All you have to do is follow these simple steps, and you're good to go:
To start with creating Desktop Entry for a program , you have to mess up with terminal for a while.
All the desktop entries have
- Open your terminal or press
- Create a new desktop file using a text editor. You can use
vimor any text editor you like.
- The syntax of the command should be something like this :
[Desktop Entry]- Every desktop entry starts with this keyword.
Name: Name of the application.
Exec: Path of the executable file.
Type: Set it to
Icon: Path of the application logo.
Comment: A brief description of the application.
Categories: Categories that describe the application(e.g., Development, Office)
Terminal: Set it to
falseif the application doesn't require terminal.
StartupNotify: Set it to
trueto show a notification when the application starts.
- Make the
.desktopfile executable using the
chmod +x application_name.desktop
For system-wide access : Move the file from current directory to
For user-specific access : Move the file from current directy to
- If needed, refresh the desktop environment. Typically the command to refresh desktop is :
application_name.desktop would look like this:
And there you have it! By following these steps, you'll have your very own application shortcut in the start menu using the magic of .desktop files.