webtorrent / webtorrent-desktop

❤️ Streaming torrent app for Mac, Windows, and Linux
https://webtorrent.io/desktop
MIT License
9.69k stars 1k forks source link

Ability to click on a magnet link (implementation of the magnet protocol) #2374

Closed ar-turek closed 1 year ago

ar-turek commented 1 year ago

What version of WebTorrent Desktop are you using? 0.24.0

What operating system and version? Windows 11

What problem do you want to solve? I want to be able to click the magnet links in browsers instead of having to copy-and-paste them.

What do you think is the correct solution to this problem? Adding a WebTorrent association to the magnet protocol.

Are you willing to submit a pull request to implement this change? I'm not a competent JS programmer to the level where I could participate, and this feature would could most likely require a change in system settings and/or privilege escalation, which is an area I'm not comfortable in.

However, right now I'm achieving this same functionality with the following .reg file:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\magnet]
"URL Protocol"=""

[HKEY_CLASSES_ROOT\magnet\shell]

[HKEY_CLASSES_ROOT\magnet\shell\open]

[HKEY_CLASSES_ROOT\magnet\shell\open\command]
@="\"C:\\Users\\artur\\AppData\\Local\\WebTorrent\\app-0.24.0\\WebTorrent.exe\" \"%1\""
ar-turek commented 1 year ago

Sorry, I missed the functionality that already exists.