Peppermint OS

Support => New Users => Topic started by: penrose1950 on May 03, 2014, 07:16:00 am

Title: (SOLVED) get torrent asks for launcher ?
Post by: penrose1950 on May 03, 2014, 07:16:00 am
hello i tried to get a torrent file and it asks for a launcher and then takes me to firefox where i cannot see transmission,i want transmission to start so does anyone know how i get transmission to launch please?
thank you.
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 03, 2014, 09:01:19 am
Which web browser are you using ?

Are these torrent links, or magnet links ?
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 04, 2014, 05:41:43 am
my default browser is Chromium and they are magnet links
thank you.
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 04, 2014, 06:21:41 am
Run:
Code: [Select]
sudo gedit /usr/share/applications/defaults.listand make sure it contains the line:-
Code: [Select]
x-scheme-handler/magnet=transmission-gtk.desktopif it doesn't, add it as a NEW line at the bottom .. SAVE the file, and exit gedit.

Now (with an active interweb connection) open a terminal and run these commands in sequence:
Code: [Select]
cd /usr/binthen
Code: [Select]
sudo cp -v xdg-open xdg-open.bakthen
Code: [Select]
sudo wget https://dl.dropboxusercontent.com/u/11876059/xdg-open.tar.gzthen
Code: [Select]
sudo tar xvf xdg-open.tar.gzNow close ALL web browser instances .. then reopen Chromium.

and test a magnet link.

it should mention using xdg-open to open the link .. accept that.

Be aware that when Transmission starts it will *appear* as though the file to download is empty .. just accept it, the correct file will be added to the download list.
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 04, 2014, 07:08:23 am
i get this message

tar: xdg-open: Cannot open: File exists
tar: Exiting with failure status due to previous errors
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 04, 2014, 07:31:00 am
My mistake, forgot to add "sudo" to the last command .. fixed above.

Run:
Code: [Select]
cd /usr/binthen
Code: [Select]
sudo tar xvf xdg-open.tar.gzNow close ALL web browser instances .. then reopen Chromium.

and test a magnet link.

it should mention using xdg-open to open the link .. accept that.

Be aware that when Transmission starts it will *appear* as though the file to download is empty .. just accept it, the correct file will be added to the download list.
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 05, 2014, 04:50:09 am
when i click on get this torrent next to the magnet it comes up with external protocol request launch application,when i click on launch application nothing happens?
thank you.
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 05, 2014, 02:46:14 pm
Which application does it say it's going to launch ? .. xdg-open ?
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 04:57:15 am
yes xdg-open but nothing happens when i click on launch application?
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 06, 2014, 05:05:20 am
OK, can you post the contents of these 3 files .. but pleased use the "spoiler" tags as the output will be rather long

Code: [Select]
gedit /usr/share/applications/transmission-gtk.desktopand
Code: [Select]
gedit /usr/bin/xdg-openand
Code: [Select]
gedit /usr/share/applications/defaults.listalso post the output from:
Code: [Select]
ls -l /usr/bin/xdg-open
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 05:30:56 am
sorry but could you please tell me what and how to use a spoiler tag?
thank you.
Title: Re: get torrent asks for launcher ?
Post by: mac on May 06, 2014, 06:03:25 am
Code: [Select]
[spoiler]your text here[/spoiler]
Code: [Select]
[spoiler=title]your text here[/spoiler]
OR, Use the Sp button / tool when you post or when you send a PM.  The
Code: [Select]
[Spoiler][/Spoiler] brackets will appear and you can copy & paste your text, etc, between the two sets of brackets.

(https://dl.dropboxusercontent.com/u/9267308/spoilertag.png)
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 06:47:14 am
gedit /usr/bin/xdg-open
[close]
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 06:49:00 am
gedit /usr/share/applications/transmission-gtk.desktop
[close]

gedit /usr/share/applications/defaults.list
[close]
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 06:51:47 am
-rwxr-xr-x 1 root root 13811 Jul 22  2013 /usr/bin/xdg-open
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 06, 2014, 11:11:02 am
OK, run these commands in sequence:
Code: [Select]
xdg-mime default transmission-gtk.desktop application/x-bittorrentthen
Code: [Select]
xdg-mime default transmission-gtk.desktop x-scheme-handler/magnetthen
Code: [Select]
cd /usr/binthen
Code: [Select]
sudo wget https://dl.dropboxusercontent.com/u/11876059/xdg-open-magnet-fix.tar.gzthen
Code: [Select]
sudo tar xvf xdg-open-magnet-fix.tar.gzNow REBOOT.

Once rebooted, test xdg-open opens transmission for magnet links with:
Code: [Select]
xdg-open "magnet:?xt=urn:btih:00f31997b0240ef6235271ae80a95ea402055bdb"that should open transmission and after you click Open should download
Linux Shell Scripting with Bash.pdf

If that works .. try a magnet link in Chromium or Chrome.
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 06, 2014, 12:42:04 pm
i got this error but when i clicked on the magnet it brought the launcher up and i clicked on it i think it said use this launcher from now on and it worked

WARNING: gnome-keyring:: couldn't connect to: /run/user/john/keyring-DKLV1Q/pkcs11: No such file or directory
Title: Re: get torrent asks for launcher ?
Post by: PCNetSpec on May 06, 2014, 12:52:12 pm
Ignore the gnome-keyring warning, it's not important.

Are magnet links now working in Chromium ?
Title: Re: get torrent asks for launcher ?
Post by: penrose1950 on May 07, 2014, 08:52:31 am
yes all good,thank you very much for your help.
Title: Re: (SOLVED) get torrent asks for launcher ?
Post by: PCNetSpec on May 07, 2014, 09:33:51 am
No problem .. cheers for marking the topic solved :)
Title: Re: (SOLVED) get torrent asks for launcher ?
Post by: Hasimir0 on July 19, 2014, 04:43:47 am
Thanks a LOT also from me... it worked! :D
Title: Re: (SOLVED) get torrent asks for launcher ?
Post by: PCNetSpec on July 19, 2014, 06:12:52 am
You're welcome too :)