Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

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

详细了解

Protocol handlers, Firefox 7, linux. What's the story?

  • 3 个回答
  • 9 人有此问题
  • 2 次查看
  • 最后回复者为 robblau

more options

I'm having a hard time Googling for this info, as most of the available information out there appears to be out of date.

Using Firefox 7 on Linux (Fedora 15.) We used to register some custom protocols using gconf, which worked great with Firefox 3. FF7 seems to completely ignore the gconf settings.

Trying to register regular protocol handlers via about:config doesn't appears to do anything, either. This article ( http://support.mozilla.com/en-US/kb/The%20protocol%20is%20not%20associated%20with%20any%20program) didn't help.

What's the correct way to go about doing this now?

I'm having a hard time Googling for this info, as most of the available information out there appears to be out of date. Using Firefox 7 on Linux (Fedora 15.) We used to register some custom protocols using gconf, which worked great with Firefox 3. FF7 seems to completely ignore the gconf settings. Trying to register regular protocol handlers via about:config doesn't appears to do anything, either. This article ( http://support.mozilla.com/en-US/kb/The%20protocol%20is%20not%20associated%20with%20any%20program) didn't help. What's the correct way to go about doing this now?

所有回复 (3)

more options
more options

Thanks for your reply.

That's link outlines exactly what I've tried, but isn't working. Trowling through bugzilla shows others with issues (over 100 bugs for a "protocol handler" search), but most are pretty old.

I'm fine with opening a new bugzilla ticket, but I want to try and get a feel for if I've even in the right area still, or if this behavior was long depreciated. I get the feeling that the about:config settings were depreciated in favor of just fallback to the OS (since that worked previously), but that is seemingly ignored now on Linux.

more options

Dear people from the future,

There didn't seem to be any good information out there on this and I just had to figure it out. Seems like at some point the about:config tweaks documented all over the place stopped working. The only way I've found to get newer firefox versions to register a custom protocol is to specify a desktop file for the application you want to launch.

The secret sauce is to create a .desktop file in /usr/share/applications for your application (see the existing ones as examples, especially the firefox one for http support). Then add a line to defaults.list (same directory) similar to the other x-scheme-handler lines that are already there, just substitute your protocol and desktop file.

The next time you click on one of the links for the custom protocol you should get the appropriate options to use the registered app to handle the URI.

由robblau于修改