Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detecting msedge.exe in Windows when Chrome is not found through registry #409

Merged
merged 1 commit into from Oct 8, 2023

Conversation

CrendKing
Copy link
Contributor

I don't have Chrome installed, but Edge exists by default. When I do println!("{}", headless_chrome::browser::default_executable());, it tells me "Could not auto detect a chrome executable".

The related msedge.exe detection code seems wrong, because 1) it doesn't use path from the enclosing if let, and 2) msedge should be only needed if chrome is not detected, but the current code only does it otherwise.

@Billy-Sheppard
Copy link
Collaborator

This looks good! Thanks.

@Billy-Sheppard Billy-Sheppard merged commit e7d946b into rust-headless-chrome:main Oct 8, 2023
1 check passed
pull bot pushed a commit to mirsella/rust-headless-chrome that referenced this pull request Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants