Fix URLs opening in explorer on Windows

This commit is contained in:
Serban Constantin authored and GitHub committed 2021-03-15 14:27:57 +00:00
1 parent 5aa02816c4
commit 17923efccf
3 files changed
+6 -2

No files matched your search

+1
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
+1 -1
View File
@@ -456,7 +456,7 @@
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
# - (Windows) explorer
# - (Windows) cmd /c start ""
#launcher:
# program: xdg-open
# args: []
+4 -1
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(),
}
}