+11

Unity Launcher support on Ubuntu

Peter Lejeck 13 ár síðan updated by Marcos Garcia 12 ár síðan 1
Sublime Text 2 does not properly go into the Unity Launcher without great difficulty, and when it's there, it doesn't have an icon or the right-click lists.
I couldn't find an optimal solution yet, but I could do something.

First, I symlinked my Sublime Text 2 executable to /bin folder:
$ sudo ln -s [SUBLIME_TEXT_FOLDER]/sublime_text /bin/sublime_text

Then, I created a file named sublime_text.desktop at ~/.local/share/applications with the following content:

[Desktop Entry]

Name=Sublime Text 2
Comment=Sophisticated text editor for code, html and prose. 
Exec=sublime_text
Terminal=false
Type=Application
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
StartupNotify=true

Like I said, this isn't perfect. If you open it two times on the same session, it will duplicate the icon. If you remove the duplicates, you remove them all. Sometimes it won't show on alt+tab. But, still, if you log in and keep it open, this will do the work.