将Sublime Text 2设为Ubuntu默认编辑器

原来的/etc/gnome/defualts.list中的gedit是这样的:


text/plain=gedit.desktop

text/richtext=abiword.desktop

text/rtf=libreoffice-writer.desktop

text/spreadsheet=libreoffice-calc.desktop

text/tab-separated-values=libreoffice-calc.desktop

text/x-comma-separated-values=libreoffice-calc.desktop

text/x-chdr=gedit.desktop

text/x-csrc=gedit.desktop

text/x-dtd=gedit.desktop

text/x-java=gedit.desktop

text/mathml=gedit.desktop

text/x-python=gedit.desktop

text/x-sql=gedit.desktop

但是后来全部的gedit全部改为了sublime就行了


但是别人的比较复杂(链接):

sublime text 2设为Ubuntu默认文本编辑器

你可能感兴趣的:(将Sublime Text 2设为Ubuntu默认编辑器)