Implemented by
[scriptable, uuid(7d362c71-308e-4724-b1eb-8451fe133026)]
interface nsIProcess2 : nsIProcess
Methods
Executes the file this object was initialized with optionally calling
an observer after the process has finished running.
@param args An array of arguments to pass to the process in the
native character set.
@param count The length of the args array.
@param observer An observer to notify when the process has completed. It
will receive this process instance as the subject and
"process-finished" or "process-failed" as the topic. The
observer will be notified on the main thread.
@param holdWeak Whether to use a weak reference to hold the observer.
void
runAsync([array, size_is(count)] in string args, in unsigned long count, [optional] in nsIObserver observer, [optional] in boolean holdWeak)
Compare to: