initial commit
This commit is contained in:
commit
97dd8da178
11 files changed
+480
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
|
||||
1. Register the native host (once per user):
|
||||
|
||||
host/install.sh
|
||||
|
||||
2. 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 `.xpi` via `about:addons` → gear → Install Add-on From File.
|
||||
|
||||
3. 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`).
|
||||
Reference in new issue
Block a user