[Enigmail] IPC library usage

Patrick Brunschwig patrick at mozilla-enigmail.org
Tue Feb 5 10:03:02 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Brunschwig wrote:
> Damiano Albani wrote:
>> Hello,
> 
>> On Feb 4, 2008 1:16 PM, Patrick Brunschwig <patrick at mozilla-enigmail.org
>> <mailto:patrick at mozilla-enigmail.org>> wrote:
> 
> 
>>     If that doesn't help then you could maybe try to replace
>>     "C:\dummy.exe with C:\\windows\\system32\\cmd.exe /c dir C:\\"
> 
> 
>> Nope, still the same issue... :-/
>> Could I have a look at the exact JS code you used ?
> 
> ipc/tests/ipctest.js and tests/tests/ipc.js
> 
>> Mine can be seen on <http://pastebin.mozilla.org/320744>. I suppose I
>> must pass an incorrect argument at some point.
> 
> Indeed I think you do :-) I imagine that you use a recent nightly build
> of Enigmail -- but if you check the latest ipc tar file
> (http://mozilla-enigmail.org/ipc/ipc-latest.tar.gz), you'll see that the
> 1st parameter has changed, it's now an nsIFile. I.e.
> 
> it should be:
> var dummyFile =
> Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
> dummyFile.initWithPath("C:\\Dummy.exe");
> dummyFile = localfile.QueryInterface(Components.interfaces.nsIFile);

sorry, that   ^^^^^^^^^ should have been dummyFile.

- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBR6ik1XcOpHodsOiwAQJCoAf/SLPoe6jw52cN9ovjmaRMnf7U0qfBt1mI
8sP/aaZI599wxsEuWK8OFGxNLP5CUTOWAgwgnjBKqrUxSw2jWbMzrpAICLO7ozJx
LXbTUFr8N5ImId+63QuSiIEkDYErdzTQAKSt5ZBSuzgtDff+dfsgo4cecTQwes8p
DNkzc5Oz4w+7/2nrWbYo7eAaKSK+A7+g+fKfGvyYSMa5vPA0yKua6xelsDbqNYYs
fjvsiX3PVKlhZiGyJQCPjBfF4LQ6MJdgRa3tV2/f02jh6NMi3G4prvUBWD3wafqt
vIC/K59EQ5eC+O4tZFffdtQ7kxPWRct6PYDVDhyYTNnQEQpYm26LHw==
=ATQs
-----END PGP SIGNATURE-----


More information about the Enigmail mailing list