summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerban Constantin <serban.constantin@gmail.com>2021-03-15 16:27:57 +0200
committerGitHub <noreply@github.com>2021-03-15 14:27:57 +0000
commit17923efccfb7e6bbcdeb5f748796d9ee1ea70149 (patch)
tree1cdab45183312f4f061d0a3271bc5238c816a96c
parent5aa02816c47e4b50fc51bcb830c5864f681b3913 (diff)
downloadalacritty-17923efccfb7e6bbcdeb5f748796d9ee1ea70149.tar.gz
alacritty-17923efccfb7e6bbcdeb5f748796d9ee1ea70149.zip
Fix URLs opening in explorer on Windows
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty.yml2
-rw-r--r--alacritty/src/config/mouse.rs5
3 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9fbe458b..710956b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/alacritty.yml b/alacritty.yml
index 2ffadc2d..d049e665 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -456,7 +456,7 @@
# Default:
# - (macOS) open
# - (Linux/BSD) xdg-open
- # - (Windows) explorer
+ # - (Windows) cmd /c start ""
#launcher:
# program: xdg-open
# args: []
diff --git a/alacritty/src/config/mouse.rs b/alacritty/src/config/mouse.rs
index f562ebe0..2aa7557c 100644
--- a/alacritty/src/config/mouse.rs
+++ b/alacritty/src/config/mouse.rs
@@ -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(),
}
}