搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

I want to register a custom protocol handler in Firefox/Linux

  • 2 个回答
  • 13 人有此问题
  • 745 次查看
  • 最后回复者为 stefanreich

more options

Hi,

I am trying the usual methods to register a protocol handler for my local application. Meaning, I created these values in about:config:

network.protocol-handler.app.javax = /home/stefan/bin/j network.protocol-handler.expose.javax = false network.protocol-handler.external.javax = true

However, when I type "javax:test" in the URL bar, it sends me to Google.

Hi, I am trying the usual methods to register a protocol handler for my local application. Meaning, I created these values in about:config: network.protocol-handler.app.javax = /home/stefan/bin/j network.protocol-handler.expose.javax = false network.protocol-handler.external.javax = true However, when I type "javax:test" in the URL bar, it sends me to Google.

被采纳的解决方案

When you would create only network.protocol-handler.expose.javax = false then Firefox should prompt for the application to handle this protocol and add this protocol to mimeTypes.rdf. Testing/forcing this javax protocol via the location/address bar wouldn't work.

This works for me to force a dialog to select the application:

定位到答案原位置 👍 2

所有回复 (2)

more options

选择的解决方案

When you would create only network.protocol-handler.expose.javax = false then Firefox should prompt for the application to handle this protocol and add this protocol to mimeTypes.rdf. Testing/forcing this javax protocol via the location/address bar wouldn't work.

This works for me to force a dialog to select the application:

more options

Yesss!! I see now, it doesn't work in the address line (why not?). With a link, all fine. Thanks!