MozillaZine

Open with bash + parameter

User Help for Mozilla Firefox
plopen
 
Posts: 2
Joined: December 24th, 2017, 6:46 pm

Post Posted December 24th, 2017, 6:56 pm

Hello,

I'm wondering if it's possible to open a bash script from FF.

Basically, I'd like this to happen when I click on a magnet link. And then use magnet link as a parameter in my bash script. I already have this, but nothing happens :

Image

Do you know if this is possible?

Thank you very much for your help :)
plopen

therube

User avatar
 
Posts: 19163
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted December 26th, 2017, 9:53 am

I what does pleerfox.sh do, what are its (shell script) commands?
magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a&dn

In Windows, I have "magnet" set up as a "URL Protocol", & by default it loads my download manager (which handles magnet".
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

plopen
 
Posts: 2
Joined: December 24th, 2017, 6:46 pm

Post Posted December 27th, 2017, 2:53 am

Thanks for the answer therube :)

Actually I'm on Linux :)

I don't know if you know peerflix, but basically Peerflix can be used with a magnet link or a torrent file to stream a video with its magnet link with your favourite player (https://github.com/mafintosh/peerflix).
What I want to do is to launch the command (for example) :
Code: Select all
peerflix "magnet:?xt=urn:btih:ef330b39f4801d25b4245212e75a38634bfc856e" --vlc

Where the link or the magnet is the parameter of my script when I open a link (that is a magnet) from FF. Is it clear ? ^^'

Thank you again :)

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 11 guests