Skip to content

Commit 9048e63

Browse files
committed
Prioritize wslview so it's always launched when present
1 parent c5af111 commit 9048e63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unix.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::{
2+
borrow::Borrow,
23
env,
34
ffi::{OsStr, OsString},
45
path::{Path, PathBuf},
@@ -8,11 +9,11 @@ use std::{
89
pub fn commands<T: AsRef<OsStr>>(path: T) -> Vec<Command> {
910
let path = path.as_ref();
1011
[
12+
("wslview", &[wsl_path(path).borrow()] as &[_]),
1113
("xdg-open", &[path] as &[_]),
1214
("gio", &[OsStr::new("open"), path]),
1315
("gnome-open", &[path]),
1416
("kde-open", &[path]),
15-
("wslview", &[&wsl_path(path)]),
1617
]
1718
.iter()
1819
.map(|(command, args)| {

0 commit comments

Comments
 (0)