I had a problem in running process under OSX operating system, the following code :
- Code: Select all
try
{
// create an nsILocalFile for the executable
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath("/Applications/VLC.app");
// create an nsIProcess
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
process.init(file);
var args = ["arg1", "arg2"];
process.run(false, args, args.length);
}
catch (e)
{
dump(e);
}
throw the exception :
- Code: Select all
[Exceptions... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nslProcess.init]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"
...
All the extension tested (Launchy, External_Application_Buttons...) doesn't works

Is it a bug or a code error ? Is exist an extension wich launch and external extension and run under OSX ?
(FoxyTunes launch correctly the player but it use a platform based compiled library...)
Thanks for any help !
Sethnakt