openscopeproject / openscopeproject/TrguiNG

Missing MAGNET Windows Capabilities

Open
#334 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
796
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Issue

I just tried installing qBittorrent on the side, and now magnet: links are associated with qBittorrent instead of TrguiNG.
I did some testing, and it seems that qBittorrent has registered its Capabilities in windows, so it's now the default.
Since TrguiNG only changes the defaults in registry and doesn't add Capabilities in windows, then qBittorrent seems to be favoured over TrguiNG.

Image

Solution

I have made a registry fix, using this superuser post from a few yeas ago https://superuser.com/a/1810012/542839, comparing it with the qBittorrent installer installer.nsh

[!CAUTION]
The username in the script is set as <USERNAME>, make sure to change it to your username.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\TrguiNG.Url.Magnet]
@="Magnet URI"

[HKEY_CURRENT_USER\Software\Classes\TrguiNG.Url.Magnet\DefaultIcon]
@="\"C:\\Users\\<USERNAME>\\AppData\\Local\\TrguiNG\\TrguiNG.exe\",0"

[HKEY_CURRENT_USER\Software\Classes\TrguiNG.Url.Magnet\shell\open\command]
@="\"C:\\Users\\<USERNAME>\\AppData\\Local\\TrguiNG\\TrguiNG.exe\" \"%1\""

[HKEY_CURRENT_USER\Software\TrguiNG\Capabilities]
"ApplicationName"="TrguiNG"
"ApplicationDescription"="Remote GUI for Transmission torrent daemon"

[HKEY_CURRENT_USER\Software\TrguiNG\Capabilities\UrlAssociations]
"magnet"="TrguiNG.Url.Magnet"

[HKEY_CURRENT_USER\Software\RegisteredApplications]
"TrguiNG"="Software\\TrguiNG\\Capabilities"

Notes

If this is to be implemented in the installer, Maybe the TrguiNG.File.Torrent, similar to what qBittorrent has should also be added. I didn't add it in my script, as it doesn't seem to be an issue for me.
Omitting the TrguiNG.File.Torrent has some side effects.
If you search for .torrents in "Default apps" on windows settings then TrguiNG is selectable, but if you check the TrguiNG app by itself then only MAGNET is shown, using my patch.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Windows installer or packaging configuration that registers TrguiNG's file and URL associations, then compare it with the registry script and qBittorrent installer linked in the issue. Done means Windows registers TrguiNG capabilities for both magnet links and torrent files, and Default apps shows both associations for the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
tauri, typescript
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.