How to associate .torrent links to a specified program?

Asked by scroofer

Im new to Ubuntu but i was tring to get Firefox to associate the protocol ST with a program.Im tring to use Stream Torrent.I used wine to install it.That went fine but when i click on the link in a web page I get an error message."Firefox doesn't know how to open this address because the protocol (st) isn't associated with any program".Firefox doesn't associated st protocol with it.I tried other torrent programs too but the same thing.Is there something i can do to fix this?Maybe a string in the about:config page?I can use anybody's help with is.I'm stuck.Thank you very much.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firefox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Federico Tello Gentile (federicotg) said :
#1

In order to add a protocol to launch an external application, you have to follow this Firefox instructions

http://support.mozilla.com/en-US/kb/The+protocol+is+not+associated+with+any+program

You have to provide the string that launches the external application. As it is running through wine, you have to figure that out or make a separate question here.

Revision history for this message
scroofer (scroofer) said :
#2

Thanks for getting back that fast.So i read the page.So does this look right

network.protocol-handler.app.st

 but how do i find out the right path to the program?
c:/wine/streamtorrent.exe?

I just guessing.I always been a window user.I never really had type any commands before but i hope you can still help me that would be great.

Revision history for this message
Federico Tello Gentile (federicotg) said :
#3

If you don't have the exact command you are calling to launch that program with wine, then...

Find the file streamtorrent.exe, it is probably in your home folder. Suppose it is in /home/myuser/.wine/drive_c/Program Files/streamtorrent/streamtorrent.exe

So the command is

wine '/home/myuser/.wine/drive_c/Program Files/streamtorrent/streamtorrent.exe'

It is just as you would call it in windows, only with 'wine' upfront.

Revision history for this message
scroofer (scroofer) said :
#4

Question: Firefox doesn't automatically load a StreamTorrent stream when I click the link. Why?
Answer: In firefox goto Tools --> Options --> Applictions on the left named "Content Type" look for st and on the right "Action" choose Use StreamTorrent Media Player(Default) now StreamTorrent will be reconized by firefox.

ScreenShot of Firefox Options

 I tried but it didn't work.I've been looking into it a little better and nobody has come up with a way yet.Im going to try and figure out how to add a application into the options .Its supposed to be there already but it's not.Maybe only in windows does it show up.I thank you for giving it a shot but im not sure if any way it can work.Thats kinda sucks because i use it alot .So i guess i just have to go back to windows to watch it.Thanks again

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Make a bash script like this:

#!/bin/bash
wine '/home/myuser/.wine/drive_c/Program Files/streamtorrent/streamtorrent.exe' $1

You can then save this in /usr/bin as streamtorrent

you can then run:

sudo chmod +x /usr/bin/streamtorrent

Then tell firefox to use streamtorrent as the command to open torrents with.

Why don't you use one of the native torrent clients available in Linux? ? They will run much cleaner than anything wine can do.

Revision history for this message
scroofer (scroofer) said :
#6

I brought up the terminal window and tried it but it still didn't work.I even tried to download a windows version of firefox.I ran it through wine but that didn't work either.It ran just like in windows but stream torrent didn't come up.I think its more than just getting firefox to reconize the protocol.Im just gonna have to wait and see if they come up with a linux version

"Why don't you use one of the native torrent clients available in Linux? ? They will run much cleaner than anything wine can do."

This program lets you watch live tv (sports).It's MYp2p site that is very specific with the type of feed they offer.It's not a regular torrent client.Even in windows,You have to use the right client for that specific game.One game might use stream torrent and another can be TVants or Sopcast client.I didn't see any in the software center.So i thank everyone who helped me with this problem but It's seems to big of a problem for me to correct.i don't know pretty much anything about linux.

Can you help with this problem?

Provide an answer of your own, or ask scroofer for more information if necessary.

To post a message you must log in.