[Jslib] [MacOSX] jslib fileutils spawn failure

SPAM catcher trash at thecolinas.net
Sat Jan 10 01:13:11 EST 2004


Hi,

it's the noise-maker again ;-)

I have here Firebird 0.6.1 (containing an xpcshell for MacOS-X).

Installed jslib-0.1.130

Via xpcshell

js> load('chrome/jslib/jslib.js');
js> include(jslib_file);
chrome://jslib/content/io/file.js
chrome://jslib/content/io/filesystem.js
*** load: filesystem.js OK
*** load: file.js OK
0
js> include(jslib_fileutils);
chrome://jslib/content/io/fileUtils.js
*** load: fileUtils.js OK
0
js> var fu = new FileUtils();
chrome://jslib/content/io/dirUtils.js
*** load: dirUtils.js OK

... OK till now.

js> fu.spawn('/Applications/Calculator.app/Contents/MacOS/Calculator');

-----======[ ERROR ]=====-----
ERROR: in fileUtils.js:spawn  (File is not executable)
NS_ERROR_NUMBER:   NS_ERROR_INVALID_ARG
------------------------------

null
js>  
fu.spawn('/Applications/OpenSource/Mozilla/Mozilla_Firebird.app/ 
Contents/MacOS/MozillaFirebird-bin');

-----======[ ERROR ]=====-----
ERROR: in fileUtils.js:spawn  (File is not executable)
NS_ERROR_NUMBER:   NS_ERROR_INVALID_ARG
------------------------------

null
js> fu.spawn('Applications:OpenSource:Mozilla:Mozilla_Firebird.app');

-----======[ ERROR ]=====-----
ERROR: in fileUtils.js:exists  (problem getting file instance)
Name:              NS_ERROR_FILE_UNRECOGNIZED_PATH
Result:            2152857601
Message:           Component returned failure code: 0x80520001  
(NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsILocalFile.initWithPath]
FileName:          chrome://jslib/content/io/fileUtils.js
LineNumber:        226
NS_ERROR_NUMBER:   NS_ERROR_UNEXPECTED
------------------------------


-----======[ ERROR ]=====-----
ERROR: in fileUtils.js:spawn  (file doesn't exist)
NS_ERROR_NUMBER:   NS_ERROR_UNEXPECTED
------------------------------

null
js> fu.spawn('/usr/X11R6/bin/xterm');

-----======[ ERROR ]=====-----
ERROR: in fileUtils.js:spawn  (File is not executable)
NS_ERROR_NUMBER:   NS_ERROR_INVALID_ARG
------------------------------

null


What's going on ?
Is the .spawn method still broken ? Do I need the workaround-skript ?

Thanks in advance,

Curtis



More information about the Jslib mailing list