Fix URLs opening in explorer on Windows

This commit is contained in:
Serban Constantin 2021-03-15 16:27:57 +02:00 committed by GitHub
parent 5aa02816c4
commit 17923efccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Alacritty failing to start on X11 with invalid DPI reported by XRandr
- Text selected after search without any match
- Incorrect vi cursor position after leaving search
- Clicking on URLs on Windows incorrectly opens File Explorer
### Removed

View File

@ -456,7 +456,7 @@
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
# - (Windows) explorer
# - (Windows) cmd /c start ""
#launcher:
# program: xdg-open
# args: []

View File

@ -38,7 +38,10 @@ impl Default for Url {
#[cfg(target_os = "macos")]
launcher: Some(Program::Just(String::from("open"))),
#[cfg(windows)]
launcher: Some(Program::Just(String::from("explorer"))),
launcher: Some(Program::WithArgs {
program: String::from("cmd"),
args: vec!["/c".to_string(), "start".to_string(), "".to_string()],
}),
modifiers: Default::default(),
}
}