Sublime on Ubuntu Unity Menu
This is more for my reference but others may find it useful.
- Ubuntu 11.10
- Sublime Text 2
I’ve downloaded and unzipped Sublime into:
/home/jim/Programs/sublime
To add an icon to the Unity menu create the following file:
/home/jim/.local/share/applications/sublime.desktop
And populate it:
[Desktop Entry]
Name=Sublime Text Editor
Comment=Sublime Text Editor
Exec="/home/jim/Programs/Sublime/sublime_text" %F
MimeType=text/plain;
Terminal=false
Type=Application
Icon=/home/jim/Programs/Sublime/Icon/256x256/sublime_text.png
Categories=GNOME;GTK;Utility;TextEditor;Development;Utility;
Adjust the Exec and Icon paths accordingly.
Now if you hit the Unity menu and begin typing “Sublime…” the Sublime icon will appear.