First show the default magnet handler and all apps that are capable of opening magnet links:
gio mime x-scheme-handler/magnet
$ gio mime x-scheme-handler/magnet Default application for “x-scheme-handler/magnet”: org.kde.ktorrent.desktop Registered applications: org.kde.ktorrent.desktop transmission-gtk.desktop deluge.desktop Recommended applications: org.kde.ktorrent.desktop transmission-gtk.desktop deluge.desktop
To set Deluge as the default program for magnet links,
gio mime x-scheme-handler/magnet deluge.desktop
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.