You are not logged in.

#1 2013-08-09 16:42:48

Somnus
Member
Registered: 2013-07-16
Posts: 105

[SOLVED] Chrome and Magnet Links

Hello everyone, I'm having a problem opening magnet links with google-chrome. It says:

unable to detect the URI scheme of "magnet?: [long link of file]"

It was working fine, until I removed chrome and replaced it with Opera. I set Opera to open these links, and it worked fine as well. Then I decided I'd rather use Chrome, so I got rid of Opera, but now Chrome won't open them. I've checked and Transmission-gtk (which is what I use) is already set to open these files.

Maybe I didn't refine my search well enough, but I couldn't find anything else to do besides set transmission to open the files, which it already does. Most everything else I could find was on how to get some other programs to open the links.

Any ideas?

Last edited by Somnus (2013-08-09 23:26:37)

Offline

#2 2013-08-09 23:26:00

Somnus
Member
Registered: 2013-07-16
Posts: 105

Re: [SOLVED] Chrome and Magnet Links

Issue solved using a solution from here.

Open /usr/bin/xdg-open.
Find the line that reads  open_xfce(), should look like this:

open_xfce() 
        { 
            exo-open "$1" 

            if [ $? -eq 0 ]; then 
                exit_success 
            else 
                exit_failure_operation_failed 
            fi 
        }

Change it to:

open_xfce() 
        { 
            if (echo "$1" | grep -q '^magnet:'); then 
                torrent_client "$1" 
            else 
                exo-open "$1" 
            fi 

            if [ $? -eq 0 ]; then 
                exit_success 
            else 
                exit_failure_operation_failed 
            fi 
        }

...replacing torrent_client with your client of choice.

Last edited by Somnus (2013-08-09 23:26:56)

Offline

Board footer

Powered by FluxBB