openscopeproject / openscopeproject/TrguiNG
Missing MAGNET Windows Capabilities
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.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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