chromiumoxide::detection

Function default_executable

Source
pub fn default_executable(options: DetectionOptions) -> Result<PathBuf, String>
Expand description

Returns the path to Chrome’s executable.

The following elements will be checked:

  • CHROME environment variable
  • Usual filenames in the user path
  • (Windows) Registry
  • (Windows & MacOS) Usual installations paths If all of the above fail, an error is returned.