Make Netscape not use Mozilla's profile dir

Composer, ChatZilla and other Mozilla applications, along with Netscape, Galeon, K-Meleon and other products.
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Make Netscape not use Mozilla's profile dir

Post by Gilles »

Quick hack to have Netscape 7 use a different profile dir than Mozilla:

Win32:
  1. Open xpcom.dll in your favorite hexadecimal editor.
  2. Search for the string "Mozilla"
  3. Replace it by whatever you want <strong>but</strong> with the same number of letters
  4. <em>(Edit)For 7.1, replace the <strong>second</strong> occurence it by whatever you want <strong>but</strong> with the same number of letters</em>
  5. Save.
  6. Done.
Linux/x86:
  1. Open libxpcom.so in your favorite hexadecimal editor. <em>(7.1 : editing libxpcom_compat.so might be necessary too - not tested</em>)
  2. Search for the string ".mozilla"
  3. Replace the instances by whatever you want <strong>but</strong> with the same number of letters (there should be 3 iirc)
  4. Save.
  5. Done.
Mac OS X (7.1):
  1. Show the package contents of Netscape
  2. Drag Content/MacOS/libxpcom.dylib to your favorite hexadecimal editor. (I used <a href="http://ex-cinder.com/hexeditor.html">HexEditor</a>)
  3. Search for the string "Mozilla"
  4. Replace the <strong>second</strong> occurence it by whatever you want <strong>but</strong> with the same number of letters</em>
  5. Save.
  6. Done.

Netscape 7 will now use a different profile dir than Mozilla. No more profile sharing problems.

<em>Typical disclaimer: use it at your own risk... blablabla.... make backups...blablabla...set computer on fire...blablabla...end of the world...blablabla</em>
Last edited by Gilles on July 1st, 2003, 12:27 pm, edited 4 times in total.
cdn
Posts: 999
Joined: November 4th, 2002, 5:47 pm
Location: UK
Contact:

Post by cdn »

works fine, khexedit is good for this [ backed up first - just to be sure : ) ]

there are about 3 instances of '.mozilla'

replaced by '.netscap'

nice tip
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

i'm having a little trouble with this working on windows 2000. could you offer any help?
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Post by Gilles »

Sure.
What troubles ?
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

sorry, i got it all figured out now. thanks :)
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

any chance the folks over at netscape will modify netscape 7 so that it doesn't use mozilla's profile directory since you can't use a mozilla profile for netscape and vice versa?
User avatar
willll
Posts: 2577
Joined: November 30th, 2002, 11:39 am
Location: Washington, DC

Post by willll »

aaron wrote:any chance the folks over at netscape will modify netscape 7 so that it doesn't use mozilla's profile directory since you can't use a mozilla profile for netscape and vice versa?
that would be cool, but it doesn't seem to be happening.
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Post by Gilles »

iirc the reason behind that was to let Netscape people use the same profile for Mozilla and Netscape for testing purpose.
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

Hi, I just dloaded Netscape 7.1 for my fiancee (she uses Netscape and I use Mozilla). Previously, she had Netscape 7.02 and I used Mozilla 1.3 (I'm gonna dload Mozilla 1.4). I had applied the fix to make Netscape and Mozilla use different profile directories, but I noticed that I couldn't get it to work with Netscape 7.1 -- it didn't even install xpcom.dll..... any suggestions? I am really going to need a fix for this before I put Netscape 7.1 on again (already uninstalled it because it couldn't use the different profile directory) and I would really like her to have the extra functionality that 7.1 offers over 7.02. Any help will *****REALLY***** be appreciated!! Thank you in advance for your time :)
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Post by Gilles »

The xpcom.dll is now with the GRE installation directory.
i.e. c:\program files\common files\Mozilla.org\GRE\1.4f_2003062408

Now, I don't use the Mozilla installer (which also install a Gecko Runtime Environment) so I don't kwow what happens if you have several GREs installed.
nosebleed
Moderator
Posts: 2427
Joined: February 22nd, 2003, 9:25 am
Location: Chesapeake, VA, USA
Contact:

Post by nosebleed »

Do you have to edit the Mozilla xpcom.dll or the Netscape xpcom.dll?

BTW, What's a hexadecimal editor? (Will Notepad/Wordpad work?)
Sean
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Post by Gilles »

nosebleed wrote:Do you have to edit the Mozilla xpcom.dll or the Netscape xpcom.dll?
Either of them. I did modify the Netscape one since I find it's more logical to do so.

nosebleed wrote:BTW, What's a hexadecimal editor?
It's an editor that allows you to edit a file byte per byte.

nosebleed wrote:(Will Notepad/Wordpad work?)
I doubt Notepad or Wordpad would work.
There are some free ones here : http://directory.google.com/Top/Compute ... x_Editors/
nosebleed
Moderator
Posts: 2427
Joined: February 22nd, 2003, 9:25 am
Location: Chesapeake, VA, USA
Contact:

Post by nosebleed »

OK, I have only one xpcom.dll and I changed the first Mozilla that the hex editor came upon but they still both use the same directory! (?!)

Any help is appreciated, please.
Sean
Gilles
Posts: 290
Joined: November 5th, 2002, 2:08 am
Location: Brussels, Belgium
Contact:

Post by Gilles »

For that new release, it appears that you have to change the second occurance of Mozilla (the case is important, you have to look for Mozilla not mozilla or MOZILLA).

More precisely it is the one at offset 0x61464.
User avatar
aaron
Posts: 3130
Joined: November 4th, 2002, 8:49 pm
Location: Texas
Contact:

Post by aaron »

if someone could test out the install version of mozilla 1.4 and netscape 7.1 using the new hack that giles talked about and post their results that would be great!!! i really want to upgrade to 1.4 and get my finacee up to 7.1 and want to keep it with different profile directory...

or could i just alter the shortcuts so they point to the respective profiles? would that work???
Post Reply