Set Transmission as default program when opening magnet links

bittorrentchrometransmission

How can I set up Chromium to open Transmission when clicking on a magnet link such as on TPB?

Chromium says that it will use xdg-open but that generally doesn't do anything

System: Manjaro Linux 0.8.5.2 fully upated

Desktop Environment: Xfce 4.10

Best Answer

Chromium obeys the system-wide xdg settings. To configure opening magnet links with a custom application use the following command

xdg-mime default transmission-gtk.desktop x-scheme-handler/magnet

You can also do this manually: Open the file ~/.local/share/applications/mimeapps.list and add the following entry in the section [Default Applications]:

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

You can confirm the new setting with

xdg-mime query default x-scheme-handler/magnet
Related Question