在 /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