SeaMonkey:Moving Profiles from mozilla.org to Mozilla

Revision as of 13:06, 14 September 2007 by Pweilbacher (talk | contribs) (→‎Further notes: fix unwanted linebreak)

Change of Profile Location

The vendor ID of SeaMonkey trunk builds will be changed soon from mozilla.org to Mozilla (see bug 393620). This will affect the location of the profiles. In the future, SeaMonkey will search for the profiles in the following locations:

Profile Locations
Operating System New location Old location
Unix ~/.mozilla/seamonkey/<ProfileName> ~/.mozilla.org/seamonkey/<ProfileName>
Windows %APPDATA%\Mozilla\SeaMonkey\Profiles\<ProfileName>\ %APPDATA%\mozilla.org\SeaMonkey\Profiles\<ProfileName>\
Mac OS X ~/Library/Mozilla/SeaMonkey/Profiles/<ProfileName>/ (profile location will not be affected by the change!)
OS/2 %MOZILLA_HOME%\Mozilla\SeaMonkey\Profiles\<ProfileName>\ %MOZILLA_HOME%\mozilla.org\SeaMonkey\Profiles\<ProfileName>\

Making the change

What to copy

To be prepared for this, you need to copy the profile directory (or directories, for multiple profiles) from the old to the new location, 'before' starting a nightly build that has the change. In addition, you need to copy the file profiles.ini that is located in the same directory as the different profiles.

Which files to edit

In order to use the copied profiles, you need to edit the following files in each of the profiles:

  • prefs.js
  • user.js (if present)
  • extensions.ini

In these files, you need to adapt the paths to reflect the new location. Take care to only change those instances of mozilla.org in those files that are related to a path on the local system!

The file

  • secmod.db

also contains the profile path, but it should not be necessary to edit this file. Note: it might be destructive to edit this binary file in a normal editor!

Files to remove

You should also remove the files

  • XUL.mfasl
  • XPC.mfasl
  • panacea.dat
  • xpti.dat
  • compreg.dat

from each profile directory. These files are caches that contain the profile path but are automatically rebuilt when restarting SeaMonkey, so nothing is lost.

Automating the change

For Unix systems, there is a shell script to automatically copy the profiles from the old to the new location and edit and remove the above files. You need to call it from a terminal using

pmigrate.sh <ProfileName>

So this needs to be done once for each profile.

Further notes

  • If something doesn't work after this change, please describe the problem in the newsgroup mozilla.dev.apps.seamonkey.
  • If you want to try this out before the actual change is available in nightly builds, change the line Vendor=mozilla.org in the file application.ini to Vendor=Mozilla.
  • You should only remove the old profile location, if you are certain that you will never run an old nightly build again.