-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening a magnet link from a browser does not work if Tribler is not already running. #8460
Comments
I tried to reproduce this, but I can't find how to associate file types with applications in Brave. How did you set that up? |
@qstokkink What version of Brave are you using? The version from the official apt repo or the snap version? Can't tell you exactly how the process went of associating Tribler, but it was self-explanatory, now I am getting confirmation dialogs where I can allow a specific website allow opening magnet links in Tribler or and optionally check to never ask again. |
I installed it using (following https://brave.com/linux/):
This gave me:
If I go to a torrent link, it just downloads the file. I don't see any options to open torrents with external applications. |
What do you mean by torrent link? I am talking about magnet links, not links to torrent files. Two different things. What you mean by downloading. Is it starting the buildin Webtorrent client? You need to disable that. Or just downloading the torrent file? Again magnet link then. Below is what Grok AI gave me when I asked "How to associate magnet links with Tribler on Ubuntu in Brave browser" maybe that is helpful. To associate magnet links with Tribler on Ubuntu in the Brave browser, you need to configure your system so that magnet links are handled by Tribler instead of Brave's built-in WebTorrent feature or another torrent client. Here’s a step-by-step guide: Open a terminal and navigate to the download location, then run: sudo dpkg -i tribler_*.deb If there are dependency issues, fix them with: sudo apt-get install -f Launch Tribler to confirm it’s working: tribler Step 2: Disable Brave’s Built-in WebTorrent Go to Settings (type brave://settings/ in the address bar). Navigate to Extensions (brave://settings/extensions). Find the WebTorrent option and toggle it off. Restart Brave to apply the changes. Step 3: Set Tribler as the Default Magnet Link Handler in Ubuntu Check the current default handler for magnet links (optional): xdg-mime query default x-scheme-handler/magnet This will display the current .desktop file associated with magnet links (e.g., transmission-gtk.desktop). Associate magnet links with Tribler: xdg-mime default tribler.desktop x-scheme-handler/magnet Note: The .desktop file for Tribler is typically tribler.desktop. If this doesn’t work, verify the exact name by checking /usr/share/applications/ with: ls /usr/share/applications/ | grep tribler If it’s named differently (e.g., org.tribler.desktop), use that instead. Verify the change: xdg-mime query default x-scheme-handler/magnet It should now return tribler.desktop. Step 4: Test in Brave Click a magnet link. Brave should now trigger Ubuntu’s xdg-open, which will pass the magnet link to Tribler. Tribler should open and start handling the download. Troubleshooting Check for an option to set Tribler as the default for torrents or manually edit the MIME settings. No prompt or action: If nothing happens, ensure Tribler’s .desktop file includes the correct MIME type. Open /usr/share/applications/tribler.desktop and verify it has: MimeType=x-scheme-handler/magnet;application/x-bittorrent; If not, edit it with: sudo nano /usr/share/applications/tribler.desktop Add the MimeType line, save, and update the database: sudo update-desktop-database Brave blocks the link: If Brave shows an error (e.g., "blocked by an extension"), disable any interfering extensions via brave://extensions/ and test again. Notes This process should work as of February 28, 2025, assuming Tribler’s installation and .desktop file follow standard conventions. Let me know if you encounter issues, and I’ll refine the steps! |
I have this small issue
Triber v8.0.7
Ubuntu 24.10
Brave browser.
When I open magnet links through Brave and make them open in Tribler, it will start the program, but it will NOT add the torrent. Only when I do it again when Tribler is already running, the torrent is added.
I think this is a Linux specific issue as I believe I did this in windows with 8.x at some point and it worked.
The text was updated successfully, but these errors were encountered: