Updated 2.2 Multiple Profiles [Firefox Portable] (markdown)

Thorin-Oakenpants 2021-11-27 06:06:27 +00:00
parent 96beb58937
commit e78180a5f6

@ -3,13 +3,13 @@ How to set up, maintain, rename, delete and run profiles with Firefox Portable.
- For installed Firefox versions, please refer to [2.1 Multiple Profiles](https://github.com/arkenfox/user.js/wiki/2.1-Multiple-Profiles)
- For more on running concurrent profiles, see [2.3 Concurrent Profiles](https://github.com/arkenfox/user.js/wiki/2.3-Concurrent-Profiles)
You can't use the Profile Manager or the controls in `about:profiles` with Firefox Portable. But here are three methods to achieve multiple profiles. NOTE: Method 1 will result in every profile being fully portable. In method 2, the "secondary" profiles are not portable (as each has a single full path in an ini file). With method 3, none of the profiles are portable (as all profiles have a single full path in an ini file).
You can't use the Profile Manager or the controls in `about:profiles` with Firefox Portable.
### :small_orange_diamond: Firefox [Portable] Method 1 [Multiple Firefox Portables]
### :small_orange_diamond: Multiple Firefox Portables
This method is the easiest, and is in fact the *ONLY* method that allows multiple profiles over multiple Firefox versions. Simply install/unpack as many Firefox Portables as you need (using PortableApps *paf.exe's), and set up shortcuts (rename your shortcuts to whatever you like)
- ⚠️ Don't copy them, as internal UUIDs can break things
- ⚠️ Don't move them, as it's 100% fully portable: internally some paths are not relative
- ⚠️ Don't move them, as it's not 100% fully portable: internally some paths are not relative
* `TIP`: To create a new default vanilla profile
@ -24,119 +24,4 @@ This method is the easiest, and is in fact the *ONLY* method that allows multipl
* DisableSplashScreen=true
* AllowMultipleInstances=true
### :small_orange_diamond: Firefox [Portable] Method 2 [Firefox Portable 2ndProfile App]
Download the [FirefoxPortable2ndProfile](https://portableapps.com/support/firefox_portable#second_profile) from PortableApps and run the file as many times as you want to create as many profiles as you need. Always unpack to the same root directory as your original portable Firefox (i.e `D:/Portable/` and NOT `D:/Portable/FirefoxPortable/`).
```
- FirefoxPortable (full portable Firefox)
- FirefoxPortableHardened (portable profile)
- FireforPortableRelaxed (portable profile)
```
Note: If you want to rename a portable profile from the one you gave it when unpacking (or you moved it), under the Data/Settings directory you will need to amend the `LastProfileDirectory` in the `FirefoxPortableSettings.ini`, and yes, it is not a relative path. Here is the `Hardened` one
```ini
[FirefoxPortableSettings]
LastProfileDirectory=D:\Portable\FirefoxPortableHardened\Data\profile
SubmitCrashReport=0
```
To run concurrent profiles, you will need to add the following line to each FirefoxPortable.ini file.
```
AllowMultipleInstances=true
```
They are in different places: for the main portable Firefox, the location is the root folder and for the portable profiles, it is located in the root of the Data sub-directory e.g.
```
- FirefoxPortable/FirefoxPortable.ini
- FirefoxPortableHardened/Data/FirefoxPortable.ini
- FireforPortableRelaxed/Data/FirefoxPortable.ini
```
To run any profile, run the appropriate portable exe. Create shortcuts for them and rename them.
### :small_orange_diamond: Firefox [Portable] Method 3 [Custom]
Here is another method, and due to the restructuring of the profile locations, this means all profiles are no longer automatically picked up if the path changes (a simple ini edit for each one can fix this for migrations). This method is great for running lots (dozens!) of profiles with a single Firefox version.
Here is a typical Firefox Portable profile layout
```
-FirefoxPortable
-App
-Data
-plugins
-profile
-settings\FirefoxPortableSettings.ini
-Other
FirefoxPortable.exe
FirefoxPortable.ini
```
Here is a multiple profile layout
```
-FirefoxPortable
-App
-Data
-default
-plugins
-profile
-settings\FirefoxPortableSettings.ini
-hardened
-plugins
-profile
-settings\FirefoxPortableSettings.ini
-relaxed
-plugins
-profile
-settings\FirefoxPortableSettings.ini
-Other
Firefox.bat
FirefoxPortable.exe
FirefoxPortable.ini
FirefoxPortableDefault.ini
FirefoxPortableHardened.ini
FirefoxPortableRelaxed.ini
```
For each `settings\FirefoxPortableSettings.ini` you will need to modify the `LastProfileDirectory` value. Note that the path is not relative, and this breaks the portability factor. Here is the `relaxed` one
```ini
[FirefoxPortableSettings]
LastProfileDirectory=D:\Portable\FirefoxPortable\Data\relaxed\profile
SubmitCrashReport=0
```
Also, for each ini in the root directory you will need to add the following lines. Note that `AllowMultipleInstances` when true allows you to run concurrent profiles. Here is the `relaxed` one
```ini
AllowMultipleInstances=true
ProfileDirectory=Data\relaxed\profile
SettingsDirectory=Data\relaxed\settings
```
To launch any profile, you run a bat file located in the root directory, which overwrites the `FirefoxPortable.ini` with a copy of the profile one of your choice and then runs FirefoxPortable.exe
```batch
@echo off
echo Which profile:
echo 1: default
echo 2: hardened
echo 3: relaxed
set /p Input=
if /i "%Input%"=="1" (goto Profile1)
if /i "%Input%"=="2" (goto Profile2)
if /i "%Input%"=="3" (goto Profile3)
REM if /i not "%Input%"=="y" (exit /b)
exit /b
:Profile1
copy /Y FirefoxPortableDefault.ini FirefoxPortable.ini
FirefoxPortable
exit /b
:Profile2
copy /Y FirefoxPortableHardened.ini FirefoxPortable.ini
FirefoxPortable
exit /b
:Profile3
copy /Y FirefoxPortableRelaxed.ini FirefoxPortable.ini
FirefoxPortable
exit /b
```