mirror of
https://github.com/Such-Software/adaptive-multi-protocol-browser.git
synced 2026-10-17 22:41:25 +02:00
Add bundled browser launch specs
This commit is contained in:
@@ -29,6 +29,8 @@ Example configs live under `examples/`.
|
||||
[browser]
|
||||
default_engine = "ampb-gecko"
|
||||
state_dir = ".ampb"
|
||||
# Optional. Leave unset to use AMPB_BROWSER_BIN or the default /tmp build output.
|
||||
runtime_path = ""
|
||||
|
||||
[transports.tor]
|
||||
enabled = true
|
||||
|
||||
+4
-2
@@ -17,8 +17,9 @@ application starts. Setup is lazy:
|
||||
4. If the transport is missing, AMPB shows a prompt naming what will be installed or started.
|
||||
5. AMPB proceeds only after approval.
|
||||
|
||||
Current `open` output is a dry-run launch spec. It is intentionally side-effect free while
|
||||
the transport adapters and browser launcher are being stabilized.
|
||||
By default, `open` output is a dry-run launch spec. Use `--launch` to create the isolated
|
||||
profile and launch the configured browser runtime when the selected route is already
|
||||
ready. Transport install/start remains gated by first-use approval and readiness checks.
|
||||
|
||||
## Examples
|
||||
|
||||
@@ -28,4 +29,5 @@ python3 -m ampbrowser open http://example.b32.i2p/
|
||||
python3 -m ampbrowser open http://example.b32.i2p/ --yes
|
||||
python3 -m ampbrowser open http://example.b32.i2p/ --config examples/config.toml
|
||||
python3 -m ampbrowser open http://example.b32.i2p/ --platform android
|
||||
python3 -m ampbrowser open https://wownero.org/ --launch
|
||||
```
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
Transport management follows one rule: use what is already healthy, and manage missing
|
||||
transports only after the user opens a URL that needs them and approves setup.
|
||||
|
||||
`ampbrowser open` currently emits a dry-run launch spec. The spec includes the selected
|
||||
profile, proxy endpoint, required setup steps, and whether user consent is still needed.
|
||||
`ampbrowser open` emits a dry-run launch spec by default. The spec includes the selected
|
||||
profile, proxy endpoint, browser runtime path, generated profile prefs path, required
|
||||
setup steps, and whether user consent is still needed. With `--launch`, AMPB creates the
|
||||
profile and starts the bundled browser only when the selected route is already ready.
|
||||
Transport policy comes from `.ampb/config.toml` or an explicit `--config` path.
|
||||
|
||||
## Lifecycle
|
||||
|
||||
Reference in New Issue
Block a user