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 ?

--
Nicolas Moreau
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to