Ubuntu 15.10。を実行しています。
私/usr/share/applications/sublime_text.desktopには次のものが含まれています:
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
xxx.mdGnomeファイル(以前の「Nautilus」)でマークダウンファイル()を右クリックすると、「すべてのアプリケーションを表示」を選択しても、「Sublime Text」が選択肢として表示されません。
%F行Exec=/opt/sublime_text/sublime_text -nとおよびにそれぞれ追加しようとしExec=/opt/sublime_text/sublime_text --command new_fileましたが[Desktop Action Window]、[Desktop Action Document]何も変更しませんでした。
私も走ったsudo update-desktop-database。
何が間違っていますか?
defaults.listまたはを編集しませんでしたgedit.desktop。それらのファイルには何を含めるべきですか?
text/plain、このデスクトップファイルに登録されている唯一のMIMEタイプがありません。
/usr/share/applications/defaults.listすべてのgedit.desktopエントリに追加して置き換えましたか?