Open with bash + parameter

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

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


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 :


Do you know if this is possible?

Thank you very much for your help :)


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

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

I what does do, what are its (shell script) commands?

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: Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

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 (
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: Bing [Bot], Google [Bot] and 18 guests