I am developing a Firefox extension and would like to call an external binary from it. It would be great if I could use standard input/output to communicate, so I am looking for the best (and simplest) possible option. This is what I learnt so far:
- nslProccess is not suitable, since I need to get string as a return value. nslProccess can provide exit codes only.
- I could use XPCOM but I would prefer if I didn't need to modify code of the binary (it's C, BTW). I would also like to make the most portable solution possible.
- Protozilla IPC looks like a solution, but I'm not sure if this project is maintained. Last commit was 10 years ago.
As I understood, this functionality is implemented in Enigmail, which uses command line gpg tool. Does anyone have some specifics on that?