qBittorrent official forums

qBittorrent => Linux => Topic started by: Melvis on May 09, 2019, 08:42:12 PM

Title: [SOLVED] Getting "Failed to open URI Magnet" Errors in Chrome
Post by: Melvis on May 09, 2019, 08:42:12 PM
When opening a magnet link in Chrome, I get the following error:

"Failed to open URI "magnet:?xt=urn:btih:98b91cec54ec82ae7cde4ef129f7fec3df6b2c8b&dn=+3+x86_64+DVD&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337".

The specified location is not supported."

This just recently started happening in Chrome; magnet links work fine in Firefox. I'm using Linux Mint 19.1. 

Any ideas on how to fix?
Title: Re: Getting "Failed to open URI Magnet" Errors in Chrome
Post by: Melvis on May 10, 2019, 01:22:29 AM
I found the solution :). My system did not have the default torrent program set.

I checked my default magnet handler by running this command line:
Code: [Select]
gio mime x-scheme-handler/magnet
The above command showed that no default was set. To set it, I ran:
Code: [Select]
mime x-scheme-handler/magnet qbittorrent.desktop
Now Chrome recognizes magnet links and opens qBittorrent as expected.