How do I associate magnet links with Ktorrent in Firefox?

You're on Firefox 3.5, right? Then Sathya's solution is wrong.

According to the site he linked, the flag you must create shall be called

network.protocol-handler.expose.magnet

not network.protocol-handler.*external.*magnet, as he suggested.

Besides, you can initialize it to false and thus Firefox will ask you the program which you want to use. I just did it and it worked - no need to restart Firefox.

If KTorrent won't support Magnet Links, you might try qBittorrent, which I'm using succesfully.


Type about:config into the address bar and press Enter. Next, Add a key by Right-click -> New -> Boolean -> Name: network.protocol-handler.external.magnet with value -> true

Add another key, by Right-click -> New -> String -> Name: network.protocol-handler.app.magnet with Value -> ktorrent

Also, do ensure that the key network.protocol-handler.expose-all is set to true.

From Mozilla KB


This worked for me, FF 47, Debian 9, KDE 5:

1. In about:config find "network.protocol-handler.expose-all", change to "false";
2. Click on some magnet link - a file browser pop-up should appear, show it full path to the executable (/usr/bin/qbittorrent for ex.);
3. Change "network.protocol-handler.expose-all" back to "true";
4. Download the world.