I'd like Firefox (running on Linux) to open a custom protocol with an external application.

For example urls starting with gvim:// protocol name should launch gvim and pass the rest of url.

I tried to set network.protocol-handler.external.gvim, network.protocol-handler.app.gvim by Mozilla's knowledgebase however Firefox still throws unkown protocol error message when attempting to open gvim:// url. But no prompt on how to handle this protocol was offered. It seems the knowledgebase is outdated for Firefox ver. 27.

Any ideas on how to properly configure custom protocol handler in recent Firefox versions? I am running Linux without GNOME.

share|improve this question

I had the same question, I founded a link which documents how to register a new protocol for firefox. Edit: The oficial link in mozilla.

Firefox 3.5 and above: (Works without installed Gnome libraries)

Type about:config into the Location Bar (address bar) and press Enter.
Right-click -> New -> Boolean -> Name: network.protocol-handler.expose.foo -> Value -> false (Replace foo with the protocol you're specifying)
Next time you click a link of protocol-type foo you will be asked which application to open it with. 

I hope you founded it earlier. I hope this info would be useful for someone in the future.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.