mirror of
https://github.com/9prodhi/camoufox-rs.git
synced 2026-11-29 08:00:44 +00:00
The CLI daemon, integration tests and web_browse example each resolved the browser as $CAMOUFOX_BIN, else ~/.cache/camoufox/camoufox. Current Camoufox (`python -m camoufox fetch`) installs to ~/.cache/camoufox/browsers/<repo>/<version>/camoufox and records the active one in ~/.cache/camoufox/config.json, so a fresh install failed with "failed to spawn browser ... No such file or directory" unless the path was passed by hand. Add camoufox::config::default_executable(), mirroring the Python package's lookup, and use it from all three places: 1. $CAMOUFOX_BIN, if set and non-empty 2. active_version from <cache>/config.json, if its executable exists 3. the newest browsers/<repo>/<version>/camoufox (natural version order) 4. the legacy <cache>/camoufox, returned even if missing <cache> honours an absolute $XDG_CACHE_HOME, else $HOME/.cache/camoufox. An empty CAMOUFOX_BIN is now treated as unset. Docs (README, CLI and library references, tutorial, how-to), CHANGELOG and the camoufox-browse skill note are updated; plugin bumped to 1.1.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>