Skip to content

LaunchOptions['executable_path'] is not used when launching camoufox. #68

Open
@elliothursh

Description

@elliothursh

I have camoufox installed at /usr/bin/camoufox, and set the LaunchOptions["executable_path"] to /usr/bin/camoufox but pkgman is looking for it at /username/.cache/camoufox. Is there anything else needed to have it pick up this non-standard executable path location?

const { Camoufox } = await import("camoufox-js")

const camoufoxConfig = {
   headless: true,
   humanize: true,
   debug: false,
   timeout: 60000,
   executable_path: '/usr/bin/camoufox'
};

browser = await Camoufox(config)

# throws
Uncaught:
FileNotFoundError: Version information not found at /username/.cache/camoufox/version.json. Please run `camoufox fetch` to install.
    at Version.fromPath (file:///var/task/node_modules/camoufox-js/dist/pkgman.js:74:19)
    at installedVerStr (file:///var/task/node_modules/camoufox-js/dist/pkgman.js:238:20)
    at launchOptions (file:///var/task/node_modules/camoufox-js/dist/utils.js:337:26)
    at NewBrowser (file:///var/task/node_modules/camoufox-js/dist/sync_api.js:19:29)
    at Camoufox (file:///var/task/node_modules/camoufox-js/dist/sync_api.js:6:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions