Hello,

I want to run an external process from within XPCOM. I understand I
have to use nsIProcess interface and provide a nsIFile object which
refers to the executable I want to run. It is easy to do when you know
the exact, absolute path to the file. What happens if you know only the
structure of your run-by-xulrunner application? Can you obtain the
absolute path to, for instance, the working folder? Or to the local
html file you're currently displaying?

I've tried to use workingFolder property from nsICommandLine interface,
but I've got NS_ERROR_NOT_INITIALIZED exception. Also I've read
somewhere that you may use nsIDirectoryService but I don't know how to
use this interface and I really can't imagine in what way it might be
helpful.

Any help welcome:)
Jan

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to