I am trying to run dvipng process from a thunderbird extension using Components.interfaces.nsIProcess. I need to read standard output of the process, but I am not able to find a way to do that. I found some threads on nsIProcess2, but that one was (as it seems) never fully implemented with stdout. Any suggestions?
I am trying to run dvipng process from a thunderbird extension using Components.interfaces.nsIProcess .
Share
nsIProcess2is unrelated – it was implemented but later folded intonsIProcess. It was only about starting processes asynchronously.The relevant bugs are bug 484246 and bug 68702. The latter has been resolved but so far that code doesn’t ship with Firefox/Thunderbird by default (it’s quite a bit of code that neither Firefox nor Thunderbird need themselves). So your options are:
dvipngfor you, use it via js-ctypes – should be the easiest solution.dvipnginto a library and use it directly via js-ctypes – probably not too hard either, this will also give you better performance.