Answers:
有答案:http : //forums.fedoraforum.org/showthread.php?t=263501
我有Gnome3,并且有“打开方式”窗格:)您也可以转到比例,并有“打开方式”选项卡。
编辑:您应该查看https://bbs.archlinux.org/viewtopic.php?id=118966。如果将与应用程序关联的* .desktop文件添加到/ usr / share / applications或〜.local / share / applications /目录,则应用程序应显示在列表中。Exec应该这样:Exec =您的程序%U
我知道这是晚了,但......拳,创建一个桌面文件~/.local/share/applications/
例如sublime.desktop
会是这样的〜/。本地/共享/应用/ sublime.desktop,内容如下:
[Desktop Entry]
Keywords=Plaintext;Write;Programming;Syntax;Ruby;HTML
Categories=;
Comment=sublime
Exec=sublime_text %U
Hidden=false
Icon=icon-name
Name=sublime
Terminal=false
Type=Application
Version=1.0
StartupNotify=true
MimeType=text/plain;text/html;application/ruby;
然后...如果您进行编辑,~/.local/share/applications/mimeapps.list
您将看到内容类型text / html,如下所示进行编辑:
[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=sublime.desktop
application/x-extension-htm=sublime.desktop
application/x-extension-html=sublime.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
application/x-yaml=sublime-1.desktop;
[Removed Associations]
text/html=firefox.desktop;gedit.desktop;
你可以的,当然,变化多或者少,只要你想,当你想你也可以添加尽可能多或尽可能少到桌面文件Mime类型,例如application/python
,application/x-ruby
,text/ruby
,text/x-python
或其他几十个变种...虽然坚持简单类型例如应该应该没问题,application/python
并且application/ruby
都可以在我的GNOME 3.2安装上正常运行。