This problem occurred after upgrading from Ubuntu Gnome 17.04 to 17.10. Deluge is version 1.3.15.
When I click a magnet link in Chrome, deluge-gtk opens but it doesn't add the link or start downloading. There's lots of solutions around for older versions, but none of them work for me.
If I run
gvfs-mime --set x-scheme-handler/magnet deluge.desktop I get:
This tool has been deprecated, use 'gio mime' instead. See 'gio help mime' for more info. gio: Unknown option --set
So then if I try
gio mime x-scheme-handler/magnet deluge.desktop it tells me:
Set deluge.desktop as the default for x-scheme-handler/magnet
I also tried running
xdg-mime default deluge.desktop x-scheme-handler/magnet.
When I use
xdg-mime query default x-scheme-handler/magnet it shows
deluge.desktop as expected.
/usr/share/applications I have a
deluge.desktop file, and I think these are the relevant lines:
TryExec=deluge-gtk Exec=deluge-gtk %U MimeType=application/x-bittorrent;x-scheme-handler/magnet;
~/.local/share/applications/mimeapps.list I have:
[Default Applications] section.
I also tried reinstalling deluge - and now I'm out of ideas.
Thanks in advance for any help or pointers!