如何更改 APT:URL 的处理程序?

Mar*_*ppi 8 gnome 10.10 mime-type apturl

在访问apt.ubuntu.com/p/banshee(例如)时全新安装 10.10 的 Firefox 中,我收到以下窗口提示:

替代文字

但是,我的印象是 apturl 应该启动Software Center。如何配置使用 apturl 启动的应用程序 - 上面的屏幕截图是 10.10 的预期操作吗?

Isa*_*iah 8

是的,这是默认操作。

这可以被 Firefox 覆盖,但开箱即用的 gconf 设置
/desktop/gnome/url-handlers/apt/command被使用。默认情况下,该命令是apturl "%s".

您可以使用图形工具gconf-editor或从命令行更改它:

gconftool --set --type=string /desktop/gnome/url-handlers/apt/command 'software-center "%s"'
Run Code Online (Sandbox Code Playgroud)

这将使软件中心处理 apt URL。

替代文字