Hi,
I've got a problem trying to run mozilla firebird with
-remote "openurl(http://www.mozilla.org,new-tab)" arguments, via nsIProcess.
Here is my code :
var exec = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
exec.initWithPath('/usr/lib/mozilla-firebird/MozillaFirebird');
var args=new Array('-remote', '"openurl(http://www.mozilla.org,new-tab)"');
if(exec.exists()){
process.init(exec);
process.run(false, args, args.length);
}
Unfortunatly, ive got this error :
/usr/lib/mozilla-firebird/MozillaFirebird: eval: line 1: syntax error near unexpected token `('
/usr/lib/mozilla-firebird/MozillaFirebird: eval: line 1: `set -- "-remote" ""openurl(http://www.mozilla.org,new-tab)""'
i've tried with only one argument, with or without quotes ...
Could someone help me ?
i wonder if the problem has anything to do with MozillaFirebird being a shell script... however, have you tried replacing MozillaFirebird with mozilla-xremote-client? if you use mozilla-xremote-client it will do the same thing, but it won't have to load as much code to do it. you don't need the -remote argument when passing commands to mozilla-xremote-client. give it a try :-)
--darin _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
