2013-06-01

How to add manual entries to Gnome Shell Launcher

With gnome-shell, you'll need to create a .desktop file in '~/.local/share/applications/' which will then allow you to add the application to the gnome-shell dash.

My .desktop file for Sublime Text looks like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
#Exec=/opt/sublime_text/sublime_text %F
Exec=/home/username/workspace/sublime_text_3/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/home/username/workspace/sublime_text_3/Icon/48x48/sublime-text.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/home/username/workspace/sublime_text_3/sublime_text -n
[Desktop Action Document]
Name=New File
Exec=/home/username/workspace/sublime_text_3/sublime_text --command new_file

Original source here.