Skip to content

Instantly share code, notes, and snippets.

@jslopez
Created October 13, 2013 02:13
Show Gist options
  • Save jslopez/6957303 to your computer and use it in GitHub Desktop.
Save jslopez/6957303 to your computer and use it in GitHub Desktop.
Set Transmission as the default handler for magnet links in Google Chrome.

Check that the file /usr/share/applications/transmission-gtk.desktop contains:

Exec=transmission-gtk %U
MimeType=application/x-bittorrent;x-scheme-handler/magnet;

Configure xdg-open to use Transmission: xdg-mime default transmission-gtk.desktop x-scheme-handler/magnet

In order to work properly function with openbox, replace generic with gnome, kde, xfce, or lxde in the file /usr/bin/xdg-open:

detectDE
if [ x"$DE" = x"" ]; then
DE=generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment