Mark Hammond wrote: > RL Clippard wrote: > >> Does "nsResult = NS_InitXPCOM2(nsnull, nsnull, nsnull);" have to >> supply the directory to the Netscape components or does it 'know'? > > > On Windows you have to tell it. Linux knows. I can't recall the > details of exactly why, but this was certainly the case 18 months ago. I > guess it is still the same.
On linux, you are using the environment variable MOZILLA_FIVE_HOME, right. If you pass null to both of the |in| parameters, you are saying the the bin directory is in the cwd and that the components directory is a sibling directory on the bin directory: cwd | \-- components directory For some applications this is perfect. Other application need to wire things up differently. For these other cases, you can (a) change the bin directory directly, or (b) override all known directory locations via a custom file location provider. -- Doug Turner [EMAIL PROTECTED]
