ubuntu 下添加sublime text 启动图标

  ubuntu下无快捷方式一说,如果想快速打开sublime Text,可以创建sublime text 启动图标

1. 创建空白文档 sublime.desktop,注意权限

$ vi /usr/share/applications/sublime.desktop

2. 文档中写入一下内容

[Desktop Entry]
Version=2.0.1
Name=Sublime Text 2
GenericName=Text 
Terminal=false
Icon=/usr/local/Sublime Text 2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
Exec=/usr/local/"Sublime Text 2"/sublime_text %F 
StartupNotify=true

# 注:需要修改的地方
# Name:就是名称了
# Comment:相当于注释
# Exec:可执行文件的路径
# Icon:图标文件的路径
# %F:能够让这个程序显示在"以其它方式启动"的列表中

3. 双击启动 Sublime Text,然后锁定到 Launcher,此时再点 Launcher 中的图标就可以愉快的玩耍啦 ^_^