Skip to content

Instantly share code, notes, and snippets.

@gturi
Created January 6, 2021 21:21
Show Gist options
  • Select an option

  • Save gturi/771f363b4823fced485c868d6325c2dd to your computer and use it in GitHub Desktop.

Select an option

Save gturi/771f363b4823fced485c868d6325c2dd to your computer and use it in GitHub Desktop.

Linux: add application to menu

Create a new file named ${app-name}.desktop inside /home/$USER/.local/share/applications.

Modify the Desktop Entry according to your application and copy it inside ${app-name}.desktop.

[Desktop Entry]
Version=version-number
Name=program-name
Comment=what the application is
Exec=/home/username/path/to/application-launcher
Path=/home/username/path/to/application-folder/
Icon=/home/username/path/to/application-folder/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application;Development;

Then add execution permissions to it with chmod u+x ${app-name}.desktop.


Example of Eclipse Desktop Entry

[Desktop Entry]
Version=Oxygen
Name=Eclipse
Comment=Eclipse is an IDE
Exec=/home/turi/Applications/eclipse-version/eclipse
Icon=/home/turi/Applications/eclipse-version/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application;Development;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment