Ubuntu默认打开方式

一,添加
Ubuntu Sublime Text 2 是个不错的编辑神器。但是在Linux Sublime Text并不是需要安装,直接解压即可使用,所以缺少Ubuntu桌面运行的一些基本配置。Ubuntu上也没有快捷方式,选择Open with other Application 也找不到它。所以需要进行一些配置 先 cd 到 /usr/share/applications 目录下创建文件 sublime.desktop 配置代码如下:

[Desktop Entry]
    Name=Sublime Text 2
    Comment=Sublime Text 2
    Exec=/../${path}/sublime_text
    Icon=/../${path}/Icon/48x48/sublime_text.png
    Terminal=false
    Type=Application
    Categories=Application;Development;
    StartupNotify=true

二,修改
/etc/gnome/defaults.list
/usr/share/applications/mimeinfo.cache
三,刷新