How to tell Chrome what to do with a magnet link?

1

if you use xfce and don't want to mess anything, you could use my solution. I fixed by manually editing xdg-open as follows:

First of all make sure you have the mime associated (as explained before, with xdg-mime)

Then backup xdg-open as root (sudo if that applies)

# cp /usr/bin/xdg-open /usr/bin/xdg-open.old

Finally, edit as root /usr/bin/xdg-open, find open_xfce() and add the lines marked with +, e.g., with nano

# nano /usr/bin/xdg-open

open_xfce() + if [ "\`echo $1 | sed -n 's/\(^[[:alnum:]+\.-]*\):.*$/\1/p'\`" == "magnet" ]; then + gnome-open "$1" + else exo-open "$1" + fi

it only adds the exception for the magnet links, so they will be opened with gnome-open instead of exo-open.

Hope it...

0 0
2
first of all StrongDC++ is REALLY BULLPOOP, I had the exact same problem, the SCUM of creators think they can do anything they please in my computer so they change magnets handle WITHOUT ASKING like they own my computer

anyway, even that there is a link in uTorrent (and in deluge, that I use) which says "associate magnet links with uTorrent", it was NOT working

so, start regedit, go to: HKEY_CLASSES_ROOT\Magnet\ and there are 2 default keys which says strongdc++ (with all path like c:\program files\strongdc++\strongdc++.exe ... or where you installed it/started it), just double click on that default keys and erase all string

so next time when you start chrome, firefox, etc. it won't know how to handle magnet url so it will ask you what app to start, so voila, you go and select uTorrent, and check "remember" ;)

PS OFC, if you have the patience (which I didn't) you can replace strongdc++.exe in those "default" keys with uTorrent.exe, but don't forget to change...

0 0
3

Go to:

C:\Users\Administrator\AppData\Local\Google\Chrome\User Data**, (%LOCALAPPDATA%\Google\Chrome\User Data)

You need to close google chrome, and open file Local State, you will need Notepad++ or something similar. And find magnet key, for example link javascript is enabled here. If there is torrent (or magnet) you just make it true, if not, try to add it in same fashion.

"protocol_handler": { "excluded_schemes": { "afp": true, "data": true, "disk": true, "disks": true, "file": true, "hcp": true, "javascript": true,

If that dont work, try to delete them, and then chrome should allegedly ask you again what to do. Maybe you should look in registry

HKEY_CURRENT_USER\Software\Classes\Magnet values. If I have figure it out, shell value (this value you will also found in protocol handler) is for external application to run in Chrome, but maybe I am very wrong!

I know it is not the smartest solution, but does something prevent...

0 0
4

For some reason, ever since I installed a fresh Manjaro 0.8.2 (before this I had installed 0.8.1, and upgraded it up to current), magnet links no longer work properly in Google Chrome, whereas they were working as expected before - I would click the "magnet:" link and Transmission would automatically open and start downloading the torrent.

Now when I click on a magnet link in Chrome, it prompts me to confirm that I am running xdg-open [magnet_link], then when I click OK, I get an error popup "Unable to detect the URI-scheme of magnet:[link]." Of course I get the same result if I run xdg-open [magnet_link] myself from the terminal.

I found this, which was helpful:
http://askubuntu.com/questions/108925/how-to-tell-chrome-what-to-do-with-a-magnet-link

After reading that, I verified that Transmission does have a working desktop file at /usr/share/applications/transmission-gtk.desktop.

I then told xdg-open to associate magnet links with Transmission by...

0 0
5

@Felemur
I forgot to tell you to also check "Handler" in Vivaldi "Site Settings". It's unlikely something will be there but just checking.

GUI Settings for MIME;
I don't know every single one of them. I mostly remember KDE/Plasma or XFCE MIME settings GUI. But mostly, I edit the file directly or use command line.

Seem we need more harder direct approach;
First I must explain, my attempt to explain obviously a disaster, I hope you could follow it. Using GUI MIME editor will change these files anyway. Sorry before hand.

All of these to answer;

Chrome and Chromium they open with what ever is associated by the system.

Check/search/backup then edit these files;

$HOME/.config/mimeapplist (new XDG place 2016>) $HOME/.local/share/applications/mimeapplist (old XDG place) $HOME/.local/share/applications/mimeinfo.cache (old file manager or DE/WM sometime use this) $HOME/.local/share/applications/default (even older but sometimes its...
0 0
6

Right now Chrome throws its apron over its head and calls Firefox, which opens the link with rtorrent. What do I need to do to eliminate the Firefox step?

Chrome (or Chromium) protocol handling works differently than in Firefox. Firefox basically keeps track of all that itself, which is why you can configure protocol handling (like magnet links) in the Applications part of the Preferences. Chrome, however, relies on xdg-open.

There are a couple things that you need to do before xdg-open will handle magnet links properly.

Find the name of the desktop file of the program you want to handle the magnet link. Let's suppose the program is Transmission. It (like usual) has its desktop file in /usr/share/applications/ and in fact, by perusing the listing of the directory, I find that my version of transmission is actually the gtk version, so its desktop file is called transmission-gtk.desktop.

It's possible the desktop file is messed up. So you can check that...

0 0
7

None of the question related, solved my problem, first, I don't use windows; second, questions related are from years ago, nad seems outadted, because much of that questions suggest to change the values of network.protocol-handler.external.magnet, but in Iceweasel 29 I can't find anything similar., should I create it? what kind of value is, boolean, string...? I don't have it some clear, or at least in your support is not clear at all.

And this link which is recommended in some relates questions : http://kb.mozillazine.org/Register_protocol is broken, at least to me is broken.

so... how may open magnet links in this disspaointing browser?. I don't want to use Chrome/Chromium because they're worse.

I'm using Linux.

None of the question related, solved my problem, first, I don't use windows; second, questions related are from years ago, nad seems outadted, because much of that questions suggest to change the values of...

0 0
8
...
0 0
9

Hiya,

When you click on a magnet link in chromium in Netrunner rolling...it asks to either 'do nothing' or to 'launch application'. Of course, I want it to automatically launch transmission-qt and put the magnet link inside of it. I've attempted the following to get transmission-qt to launch for these magnet links:

Code:

[devnet@lostnix applications]$ xdg-mime default transmission-qt.desktop x-scheme-handler/magnet
[devnet@lostnix applications]$ xdg-mime query default x-scheme-handler/magnet
transmission-qt.desktop

So, I know that transmission-qt.desktop is the default application and it is set. However, when I click on a magnet link and tell Chromium to 'Launch Application' it does NOTHING. No program launch, no nothing.

I figured I'd give Chromium an entry in ~/.local/share/applications/mimeapps.list so I opened that puppy up and put the following in there:

Code:

[Default Applications]:
...

0 0
10

If you are a frequent torrent user, you will come across magnet link. Magnet link has been around for quite some time, but it is only recently when the Pirate Bay confirmed that it would switch to DHT, PEX and magnet links that makes people start to wonder what magnet link is all about. You can read about the full explanation of DHT, PEX and Magnet Links here. In short, it is a method for you to download files without having to first download the .torrent file. You can start the download with just a link (or URL).

Magnet link makes it very convenient for all of us to download file. However, when you click on the magnet link in the browser, you will probably see the error message below.

So how can we open magnet links in the browser in various OS?

Note: Not all Bit-torrent clients support magnet links. Vuze, uTorrent and Transmission are several clients that support magnet links.

If you are using Ubuntu Karmic, the default transmission does not support...

0 0