Changes

Jump to: navigation, search

User:Jamesboston/nsIProcess/meeting-112308

724 bytes added, 04:48, 27 November 2008
no edit summary
Date : Nov 23, 2008<br />
People : James Boston, David Humphrey, Gijs Kruitbosch, Mark Finkle, Ted Mielczarek<br />
Topic : Pathnames and starting binaries from xpcshell<br />
 
Note:<br>
I've discovered that this bit of code will return the full directory path that contains xpcshell:
 
var file = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties)
.get("CurProcD", Components.interfaces.nsIFile);
 
ie. print(file.path) will return /home/james/mozilla/obj-ff/dist/bin
 
However, I have not yet determined how reliable this is. According to devmo, this "usually" works.
 
{|
<pre style="white-space:pre-wrap;">
15:58 < jboston> I'm trying to interpret this: https://bugzilla.mozilla.org/show_bug.cgi?id=442393#c12
15:58 < firebot> jboston: Bug 442393 nor, --, ---, nobody@mozilla.org, NEW, nsIProcess.kill() does not work on Win32
17:12 < ted> then you'll wind up with TestProgram.exe in $(DIST)/bin
17:14 < jboston> ted: Thanks. That was what I was looking for. I get stuck on makefiles.
</pre>
|}

Navigation menu