We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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 於 修改