Expand description
Cross-platform host helpers (PATH, console UTF-8/VT, sandbox, WSL/container). Cross-platform host helpers (PATH lookup, console, sandbox, environment).
Product law: Chrome CDP is host-only (not WASM). Browser path override is
XDG chrome_path / CLI launch options — not product env vars.
Rules: docs_rules/rules_rust_multiplataforma_sistemas_operacionais.md.
Structs§
- Host
Environment - Result of probing the host for container / CI / WSL / Termux / sandbox env.
Enums§
- Browser
Sandbox - How a resolved browser binary is packaged (affects automation reliability).
Functions§
- configure_
console - Configure Windows console for UTF-8 (CP 65001) and virtual terminal ANSI.
- detect_
browser_ sandbox - Classify a browser executable path (and process env) for sandbox warnings.
- first_
existing_ executable - First existing executable among candidate paths (skips missing / non-exec).
- is_
executable_ file - True when
pathis a regular file and (on Unix) has any execute bit. - warn_
if_ sandboxed_ browser - Emit a local warning when the resolved browser is snap/flatpak confined.
- which_
bin - Locate an executable on
$PATHwithout shelling out towhich/where.