Downloading magnet Links with Transmission/Chromium

Hi Guys

Recently I’ve been trying to download torrents from Pirate Bay but I get this error message each time I click “Download Torrent”

Transmission doesn't know how to use "magnet:?xt=urn:btih:ae99eff25f3666 73da15f4cfe6d6 164a1af01bcd&dn=The+Walking+Dead+S04E05+HDTV+x264-2HD%5Bettv%5D&tr=udp%3A//tracker.openbittorrent.com%3A80&tr=udp%3A//tracker.publicbt.com%3A80&tr=udp%3A//tr
"

I think the problem is because they’re Magnet Links and not normal torrents

Any help would be much appreciated

Graeme

For anyone else reading this … this is ONLY for Peppermint … it should fix magnet links for Chromium/Chrome/and any other Chromium based browsers.
(they already work in Firefox)

OK, edit this file:

sudo gedit /usr/share/applications/defaults.list

and make sure it contains this line … if not, add it

x-scheme-handler/magnet=transmission-gtk.desktop

SAVE the file and exit gedit.

Now run:

sudo gedit /usr/share/applications/transmission-gtk.desktop

and make sure the “MimeType=” line reads.

MimeType=application/x-bittorrent;x-scheme-handler/magnet;

if necessary, SAVE and exit gedit.

now run the following commands to backup /usr/bin/xdg-open … then edit it.

sudo cp -v /usr/bin/xdg-open /usr/bin/xdg-open-original

then open xdg-open for editing:

sudo gedit /usr/bin/xdg-open

and make it read the same as the one I’ve attached below … and SAVE it.

Now restart Chromium.

Now find a Magnet link and click on it … you should be presented with a window that says it’s going to use xdg-open as the application to open magnet links … (at this point DO NOT tick the “Remember my choice” box) click the “Launch Application” button … Transmission should fire up, click “Open” … the torrent should be added to Transmission.

If that works … next time (as long as it still says it going to use xdg-open) you can tick the “Remember my choice” box before clicking the “Launch Application” button