Open with bash + parameter

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

Open with bash + parameter

Post by plopen »

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
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Open with bash + parameter

Post by therube »

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".
Fire 750, bring back 250.
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

Re: Open with bash + parameter

Post by plopen »

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 :)
Post Reply