Braden McDaniel wrote:
On Fri, 2004-10-29 at 22:27 +0530, gmail user wrote:

Hi,
NS_InitXPCOM2 expects the second and third argument as the bin
directory of mozilla installation and the profiles location. I am
curious as to how we can obtain these information on a user system
when we ship a program based on xpcom. Can someone throw light on
this?


Here's one way:

        mozlibdir=`pkg-config --variable=libdir mozilla-xpcom`


As far as I recall you can pass nsnull to all three arguments to NS_InitXPCOM2 and have the call suceed and work, though dont quote me on this, I have only just recently begun looking through XPCOM stuff. [with no real intention to do anything other than minor triage work]


~Justin Wood (Callek on moznet IRC)
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to