[Go]ubuntu 12.04 Add Launcher method
Http://www.cnblogs.com/Jerryshome/archive/2012/08/21/2649500.html
Make a record of the Ubuntu 12.04 Custom launcher method, hoping to help a friend in need
Example of a launcher definition of sublime text 2
(1) Add introduction command to start sublime
sudo ln-s/opt/softwares/sublime_text2/sublime_text/usr/bin/sublime
(2) Create a launcher in unity
sudo sublime/usr/share/applications/sublime.desktop
In Sublime.desktop, add the following:
[Desktop Entry]
Name=sublime Text 2
Genericname=sublime Text 2 Editor
Type=application
Exec=/opt/softwares/sublime_text2/sublime_text
Icon=/opt/softwares/sublime_text2/icon/48x48/sublime_text.png
Categories=texteditor;ide;development;
X-ayatana-desktop-shortcuts=runroot; NewWindow
[Runroot Shortcut Group]
Name=run as Root
Exec=gksudo-k-U Root/opt/softwares/sublime_text2/sublime_text
Targetenvironment=unity
[NewWindow Shortcut Group]
Name=new Window
Exec=/opt/softwares/sublime_text2/sublime_text-n
Targetenvironment=unity
(3) If the sublime is running at this time, the Launcher window on the left side of Ubuntu should appear with a sublime icon, right click and select Lock to Launcher
Note: The installation path of sublime should be adjusted according to the actual situation
[Go]ubuntu 12.04 Add Launcher method