Closed Bug 220091 Opened 21 years ago Closed 21 years ago

Force-override the GRE directory.

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(1 file, 1 obsolete file)

While implementing the new packaging system in bug 20640, I have found that I can "stage" the GRE and applications to arbitrary dirs, but it's not very easy to tell the application "use the GRE in dir such-and-such". This is a little addition to the xpcom-standalone-glue. If you place a file gre-override-dir next to the application, glue will read that file and use that as the GRE directory. Or you can set an env var GRE_PATH to point to a particular GRE.
Attached patch allow forcibly choosing GRE path (obsolete) — Splinter Review
Attachment #131992 - Flags: review?(dougt)
Comment on attachment 131992 [details] [diff] [review] allow forcibly choosing GRE path oops, I forgot to close the file...
Attachment #131992 - Attachment is obsolete: true
Attachment #131992 - Flags: review?(dougt)
I don't mind the GRE_PATH part of the patch, but I do not understand why you just cant modify your gre config file in your home directory.
This patch is a little bit more extensive, but it doesn't do anything drastic. I dropped the gre-path file (although I may try to resurrect it later #if DEBUG only). if GRE_HOME is set and non-empty we forcibly use that GRE path. Note: this only works for absolute paths, due to oddities of nsLocalFile::InitWithPath. the run-mozilla.sh script will include the forced GRE path in LD_LIBRARY_PATH so that you can autoregister the GRE. Finally, I switched the order of autoregistration in NS_InitXPCOM2... if we autoregister the GRE first, then the application dir, we don't have to go back and reregister nonnative components.
Attachment #132207 - Flags: superreview?(dougt)
Attachment #132207 - Flags: review?(dougt)
Blocks: gre
This bug was fixed along with bug 223900.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.6beta
Attachment #132207 - Flags: superreview?(dougt)
Attachment #132207 - Flags: review?(dougt)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: