
Nautilus 内で Python スクリプト (または SH スクリプト) をダブルクリックして実行できるようにしたいです。そこで、カスタム デスクトップ ファイルを作成しました。内容は次のとおりです。
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ExecTxt
Exec=run-txtexe %f
Icon=application-x-executable
MimeType=text/x-python;application/x-shellscript;
NoDisplay=true
Comment=Runs executable text files
Terminal=false
Categories=System;Launchers;
run-txtexe.desktop
これを という名前のファイルに保存します~/.local/share/applications
。
Nautilus にアクセスし、Python スクリプト (text/x-python) を右クリックして、「開く」メニューにマウスを移動します。そこにはありません。「その他のアプリケーション...」をクリックします。そこにはありません。次に、「他のアプリケーションを表示」をクリックします。そこにもありません。
これはバグでしょうか、それとも私が何か間違っているのでしょうか?
私は実行しています:
Fedora 19
Nautilus 3.8.2