Grant Gayed wrote:

I'm living in a setup where I always have the same home directory regardless
of which Linux machine I log onto (it's on a shared network).  I don't know
how common this is.

This causes me a problem when my app invokes GRE_GetGREPathWithProperties
while I'm on a 64-bit Linux machine because this call returns the path of a
32-bit XULRunner install in my home directory, which of course fails in the
subsequent XPCOMGlueStartup call.

This is of course a similar problem to an x86-64 machine where you could launch a 32-bit or 64-bit XR on the same machine.

Is there any way to ensure that GRE_GetGREPathWithProperties returns a
XULRunner path that is appropriate for the current arch?  I couldn't find a
property that would help with this.

We currently don't put the architecture in the .conf registration file. You *could* make the -register-* flag add that information to the registration file:

http://lxr.mozilla.org/mozilla/source/xulrunner/app/nsXULRunnerApp.cpp#212

and then ask for the arch you need here:

http://lxr.mozilla.org/mozilla/source/xulrunner/stub/nsXULStub.cpp#268

Patches welcome.

--BDS
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to