[Enigmail] IPC library usage

Damiano Albani damiano.albani at gmail.com
Wed Feb 6 01:18:29 PST 2008


Hello,

On Feb 5, 2008 6:57 PM, Patrick Brunschwig <patrick at mozilla-enigmail.org>
wrote:

>
> > 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
>

Well, this code doesn't seem to test nsIPipeTransport code, does it ?
Plus the 'cat' command isn't applicable to Windows environments -- because
the nsIPipeTransport issue I have only happens on Windows; works great on
Linux.


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);
>
> pipeTransport.init(dummyFile,
>                   aArguments, aArguments.length,
>                   [], [].length,
>                   0, "", true, true, null);


In fact, no, I'm using your "official" 0.95.6 build, from your website.
>From the IDL of 0.95.6 source package, *nsIPipeTransport.init()* is
specified as :
*
**void init(in string executable, ...)

*

> You can actually build ipc separately from Enigmail, just unpack the tar
>  file to .../mozilla/extensions, and build it just like you'd build
> Enigmail.
>
> I currently don't create regularly builds of ipc. The difficulty is that
> Thunderbird and SeaMonkey need to be compiled differently than Firefox,
> XulRunner etc, and I just can't create 8 variants of ipc builds in
> addition to the 4 variants of Enigmail that I already build.


Ok, thanks for the information.
By the way, I saw that you were working on bug
#68702<https://bugzilla.mozilla.org/show_bug.cgi?id=68702>:
that would be awesome to have it included by default in Mozilla API!

Regards,

-- 
Damiano ALBANI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/enigmail/attachments/20080206/04203706/attachment-0001.html 


More information about the Enigmail mailing list