Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Add protocol handler for magnet links


I am trying to get firefox to invoke a custom program when it encounters a magnet url. I have added the protocol(HKEY_CLASSES_ROOT > magnet > shell > open > command) with regedit. It appears to be added correctly, since Chrome is able to understand it without further configuration.

I have tried adding the network.protocol-handler.expose.magnet boolean key in about:config in firefox. Neither having it set to false nor true changes anything.

The error i am getting is along the lines with "firefox does not know how to open the magnet protocol since it is not associated with any program"(My message is not in english so no exact translation).

Also, no mention of magnet shows up under Programs in the firefox settings.

My Firefox version is 17.0.1 The program association i set in regedit is "E:\Program\Python27\pythonw.exe" "E:\Program\Misc\magnet_add.pyw" "%1"

Thanks in advance for your help

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.10.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Shockwave Flash 11.5 r502
  • Google Update
  • VLC media player Web Plugin 2.0.2
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.4
  • Nexus Personal Plug-Ins
  • 5.1.10411.0


  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

More Information

  • Top 10 Contributor
  • Moderator
10751 solutions 96760 answers

Chosen Solution

Did you check this?

Question owner

Thanks, I had not set the "URL Protocol": "magnet" string value. It works now :)