標籤:des blog http io os ar sp div on
[轉]ubuntu 12.04添加launcher方法
http://www.cnblogs.com/Jerryshome/archive/2012/08/21/2649500.html
對ubuntu 12.04自訂launcher的方法做一記錄,希望能對有需要的朋友有所協助
以sublime text 2的launcher定義為例
(1) 添加簡介命令來啟動sublime
sudo ln -s /opt/softwares/Sublime_Text2/sublime_text /usr/bin/sublime
(2)在Unity建立一個launcher
sudo sublime /usr/share/applications/sublime.desktop
在sublime.desktop中添加如下內容
[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)如果此時sublime處於運行狀態,則在ubuntu左側launcher視窗應該出現一個sublime的表徵圖,點擊右鍵,並選擇Lock to Launcher即可
註:sublime 的安裝路徑請自行根據實際情況進行調整
[轉]ubuntu 12.04添加launcher方法