I assume that people either wanted to avoid the main stream I / O. Or there were negotiations to remove the profile manager from the application in order to speed up the launch and simplify the startup code as a whole, so this could be the reason. It looks like the victorporof wiki user did this editing, so you probably should tell him for an explanation (IIRC, he got the address @ mozilla.com, which you could easily do Google;)
In any case, the new profile is not much more than an empty directory. The application actually copies / creates the missing files immediately after its launch. Thus, your add-on can simply:
- Create an empty directory in the right place.
- Open instance:
-no-remote -profile $dir
- Add icons or something else.
- Do this.
- It’s not necessary to mess with profile.ini so that the new profile gets into the regular profile manager.
I regularly do such things from the command line, for example.
mkdir -p central.profile && path/to/filefox -no-remote -profile $PWD/central.profile
Or just keep using nsITOolkitProfileService
until it is removed. (This is what I will probably do). FWIW, there is still new code still using it as a (remote) debugger.
Also, it might be worth taking a look at the standalone profile manager that they encoded.
source share