Skip to content

Commit

Permalink
Fix detecting msedge.exe in Windows when Chrome is not found through …
Browse files Browse the repository at this point in the history
…registry (#409)
  • Loading branch information
CrendKing committed Oct 8, 2023
1 parent 6bbefaf commit e7d946b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/browser/mod.rs
Expand Up @@ -482,12 +482,12 @@ pub fn default_executable() -> Result<std::path::PathBuf, String> {
if let Some(path) = get_chrome_path_from_registry() {
if path.exists() {
return Ok(path);
} else {
for path in &[r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"][..] {
if std::path::Path::new(path).exists() {
return Ok(path.into());
}
}
}
}

for path in &[r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"][..] {
if std::path::Path::new(path).exists() {
return Ok(path.into());
}
}
}
Expand Down

0 comments on commit e7d946b

Please sign in to comment.