open-nav
    Preparing search index...

    Function findBrowser

    • Locate a browser able to print to PDF.

      Order: an explicit environment variable, a Playwright install, the usual install locations, then PATH.

      searchPaths replaces that third step. It exists because the usual locations are absolute paths on the host, so no value of env can describe a machine without a browser — which is exactly what the failure path has to be tested against.

      Parameters

      • env: Record<string, string | undefined> = process.env
      • searchPaths: readonly string[] = WELL_KNOWN_PATHS

      Returns string | undefined