4

It's been noticed by all web extension developers that Firefox is going to stop SDK support (API that allows shell execution in client side) and will only accept web extensions.

Due to above-mentioned changes, I'm trying to get a shell command executed by javascript code in Firefox's web extensions' API.

I'm dealing with a web page that executes the web extension (I solved it by using javascript events), but the real trouble is that I need to execute a shell command in the javascript main code to open client programs such as LibreOffice or a background Java code and I don't know how to achieve it.

It's also necessary to execute these shell commands on Windows, OSX and Linux.

1 Answer 1

5

You can't directly run a shell command but native messaging lets you exchange messages with a specific native application that could launch other applications on your extension's behalf: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for your solution, it's almost near to what I'm looking for but those manifest files on the client's side are going to be a big problem to our deployment requirements. Anyway thank you, this is close to what I'm looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.