wiki:MagnetLinks

Version 3 (modified by charles, 13 years ago) (diff)

--

Configuring Firefox to use Transmission for Magnet links:

  1. gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "/usr/bin/transmission '%s'"
  2. gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/needs_terminal false
  3. gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true

When you start Transmission's GTK+ client version 1.80 or newer, it will make these three calls for you if you don't already have a magnet handler set up.

Configuring Firefox to use Transmission-Daemon for Magnet links:

  1. Create a shell script /usr/local/bin/magnet containing:
    #!/bin/sh
    /usr/bin/transmission-remote --add $1
    
  2. chmod +x /usr/local/bin/magnet
  1. In Firefox go to about:config
  1. Right-click on any link and select "New->String".
  • String name: network.protocol-handler.app.magnet
  • String value: /usr/local/bin/magnet
  1. Right-click on any link and select "New->Boolean"
  • Enter name: network.protocol-handler.handler.external.magnet
  • Enter value: yes
  1. Restart Firefox