使用自定义命令的文件/应用程序关联消失了吗?

Chr*_*lma 16 command-line nautilus unity 11.10

在以前的 Ubuntu 中,当您想要选择/更改应用程序以打开特定文件(右键单击/使用其他应用程序或属性打开)时,您可以编写自定义命令来打开文件。这非常有用,但现在在 11.10 中我找不到这个选项,它只显示一个应用程序列表和一个用于在 Internet 中查找应用程序的按钮。

有没有办法恢复命令行编写自定义命令来打开文件?

cwe*_*ske 10

正如我在http://blog.whatgeek.com.pt/?p=319 上发现的那样,您可以用来mimeopen -d /path/to/file在 cli 上配置自定义应用程序。它将被 gnome3 使用。

$ mimeopen -d foo.matroska 
Please choose a default application for files of type application/x-matroska

    1) VLC media player  (vlc)
    2) Banshee  (banshee)
    3) Movie Player  (totem)
    4) Other...

use application #4
use command: mplayer
Opening "foo.matroska" with mplayer  (application/x-matroska)
Run Code Online (Sandbox Code Playgroud)