Add Third-party Installed App Launchers To Gnome Shell

Adding third party installed applications to Gnome Shell launcher is very easy. I’m going to show you a sample code and where to install it.
Adding a launcher will allow you to search and launch the application from the Gnome shell without having to do that from the command line or adding where you installed the app to your $PATH variable. It also allow you to favorite the application so it stays on the side menu bar.

Let say you’ve Eclipse installed in /opt/eclipse.

  • Create a file in ~/.local/share/applications/
  • Name the file the same as the name of the binary file of the application. This will allow you to favorite the application on the side menu bar.
  • Paste the code below and modify it accordingly. I have provided the necessary comments to help you understand the code.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Desktop Entry]
Encoding=UTF-8
# Name of the application for searching and labeling
Name=SublimeText2
 
# Give a blob about the application
Comment=Eclipse Integrated Development Environment
 
# Path to the binary file of the application
Exec=/opt/eclipse/eclipse
 
# The application Icon. PNG and XPM supported
Icon=/opt/eclipse/icon.xpm
 
# The Application Category to add this application to. 
Categories=Development;IDE
Version=1.0
StartupNotify=true
Type=Application
Terminal=0
  • Now save.

That is it!