1.4 KiB
Quick Profile
Toolbar button that opens (or focuses) a chosen Firefox profile in one click. The button shows that profile's avatar in its theme colors.
Extensions cannot launch profiles, so a small native messaging host (host/quick_profile_host.py) does the work. Firefox spawns it per click; it runs firefox --profile <path> --profiles-activate, the same command Firefox's own profile switcher uses.
Install
-
Register the native host (once per user):
host/install.sh -
Install the extension in each profile that should have the button.
-
Development:
about:debugging→ This Firefox → Load Temporary Add-on →extension/manifest.json(removed on restart). -
Permanent: release Firefox requires a signed add-on. Sign it as unlisted (private, not published on AMO):
npx web-ext sign --source-dir extension --channel unlisted \ --api-key "$AMO_JWT_ISSUER" --api-secret "$AMO_JWT_SECRET"Keys: https://addons.mozilla.org/developers/addon/api/key/. Install the resulting
.xpiviaabout:addons→ gear → Install Add-on From File.
-
-
Choose the target:
about:addons→ Quick Profile → Preferences, or click the button before configuring it.
Notes
- The icon is refreshed at startup and whenever the target changes. If you change a profile's avatar, reselect it or restart to update the button.
- Linux only (
~/.mozilla/firefox,/proc).