Magnet links refuse to associate [necro'd with fix.]

Specific support for Deluge on Microsoft Windows OS
mhertz
Compulsive Poster
Compulsive Poster
Posts: 825
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Magnet links refuse to associate

Postby mhertz » Sat Apr 25, 2020 3:10 pm

Selphea wrote:Seems to be a Windows 10 update changing how URL associations are handled. Chrome Privacy settings and Content Handlers led me on a wild goose chase till I figured out Chrome lets Windows associations handle this now.

On Windows 10 itself, Deluge's "Associate Magnet links with Deluge" button handles most of the work. However, Win10 Fall Creator's seems to have a new requirement now, a URL protocol needs to have a key called "URL Protocol":

1. Open Regedit
2. Go to HKEY_CLASSES_ROOT\Magnet
3. Create a new String called "URL Protocol". Doesn't need to be a value, just needs to be there.

The result should look like this:

Image

Only figured this out through a random guess while looking at other URL Protocol Handlers that work, but it works for me.

Thanks! :) I just checked, and deluge1 doesn't do anything with the GTKUI magnet assoc button if detecting windows, though deluge2 does and also adds said string you posted about. Also, the NSIS install script for building deluge's windows installer, already adds that string too, also in deluge1:

Code: Select all

# Create magnet uri association.
Section "Associate Magnet URI links with Deluge" Section3
    DeleteRegKey HKCR "Magnet"
    WriteRegStr HKCR "Magnet" "" "URL:Magnet Protocol"
    WriteRegStr HKCR "Magnet" "URL Protocol" ""
    WriteRegStr HKCR "Magnet\shell\open\command" "" '"$INSTDIR\deluge.exe" "%1"'
SectionEnd
Last edited by mhertz on Mon Apr 27, 2020 2:50 am, edited 2 times in total.

pwhodges
New User
New User
Posts: 9
Joined: Sat Sep 28, 2013 8:19 pm

Re: Magnet links refuse to associate [necro'd with fix.]

Postby pwhodges » Sun Apr 26, 2020 11:01 am

The very easiest way to add torrent links is this extension to Chrome (I use it in Opera):
https://chrome.google.com/webstore/deta ... fdghcmenci

Just click on any magnet or torrent file link and it is added immediately to the configured program. I'm using it with Deluge 2 on Windows.

Paul

mhertz
Compulsive Poster
Compulsive Poster
Posts: 825
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Magnet links refuse to associate [necro'd with fix.]

Postby mhertz » Mon May 11, 2020 8:41 am

Just wanted to add that I read something I never knew, by stumbling on it, about magnet assocs, so just in case if having issues, then check last post of this thread, by SMF: https://www.tenforums.com/software-apps ... links.html

In short, it's a note about another regkey(somewhere under HKCU/Software/Clients) that can "highjack" magnet assoc's, in addition to magnet key of HKCR and/or HKCU/software/classes, e.g some browsers can set, and don't cleanup after uninstall.

BTW, the magnet assoc button in deluge2(manual source install) GTKUI code, looks like don't set anything if already having HKCR/magnet set, so if having that, e.g pointed to something uninstalled, then delete HKCR/magnet, press button in GTKUI and possibly restart computer, or atleast restart browser. The button in deluge1 don't do anything on windows I believe, except the one in installer, which does.

Edit: As I said in previous post in this thread, both deluge1 installer and deluge2(manual source install) GTKUI magnet assoc button, does set "URL Protocol" entry, mentioned previously by Selphea as being needed in later win10 updates.


Return to “Windows OS”

Who is online

Users browsing this forum: No registered users and 2 guests