Ubuntu – Changing the torrent programm for magnet URL

chromiumktorrenttransmission

for the moment I'm downloading torrents via magnet sing Transmission, when the first time I was asked by chromium to open the magnet URL, I choosed Transmission and I checked the Remember my choice for all links of this type.

Now I want to change the default torrent program for Magnet URL I want to open them using KTorrent.

How can I do that ?

Best Answer

A few things from this thread:

Chromium - or any other browser - doesn't choose which application to use for launching any external application. It relies on the OS for that.

You can use gvfs-mime to reconfigure it again if you need to change your previous setting

gvfs-mime --set x-scheme-handler/magnet KTorrent.desktop

NB: KTorrent must be available. For me I use deluge so my command uses deluge.desktop which was available in /usr/share/applications/

Hope this helps out.