在 /usr/share/applications 目錄下增長 sublime.desktop 文件,注意權限!php
sudo vim /usr/share/applications/sublime_test.desktop
添加以下內容,而後保存。web
[Desktop Entry] Name=Sublime Text 3 Type=Application Terminal=false Comment=Edit text files Exec=/home/xxx/software/SublimeText2/sublime_text %F Icon=/home/xxx/software/SublimeText2/Icon/48x48/sublime_text.png
直接在Dash中檢索sublime 而後將圖標拖到 Launcher 上便可。shell
配置信息中路徑不要使用引號(最好不要有空格)。ubuntu
複製以上代碼時注意每行末尾不要有空格。vim
sudo vim /usr/share/applications/phpstorm.desktop
只是內容以下:app
[Desktop Entry] Encoding=UTF-8 Name=phpstorm IDE Comment= Exec=/bin/sh "/home/xxx/software/PhpStorm/bin/phpstorm.sh" Icon=/home/xxx/software/PhpStorm/bin/webide.png Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0