Skip to main content

Module paths

Module paths 

Source
Expand description

OS app-data directory resolution.

Functions§

config_dir
Root config directory for browser-control.
config_file_path
Returns <config_dir>/config.toml. Ensures the parent directory exists.
data_dir
Root data directory for browser-control. Used for the registry DB and profile dirs.
default_profile_dir
Returns the stable per-kind default profile directory used when browser-control start is invoked without --profile.
downloads_staging_dir
Staging directory for downloads from browsers browser-control launched (ADR-005): <data_dir>/downloads/<kind>/. Launch-time profile prefs and the MCP server’s runtime download override both point here, so every download from a managed browser lands in one predictable place no matter which agent or CLI invocation triggered it. Created on demand.
is_owned_profile
Whether profile_dir is a profile browser-control owns (under <config_dir>/profiles). Only owned profiles get download prefs written and the runtime download override (ADR-005); a user’s own browser is never redirected.
profiles_dir
Returns <data_dir>/profiles. Ensures the directory exists.
registry_db_path
Returns <data_dir>/registry.db. Ensures the parent directory exists.