Skip to content

Commit

Permalink
Add support for Linux in WSL through wslu/wslview
Browse files Browse the repository at this point in the history
Fixes #20
  • Loading branch information
timvisee authored and Sebastian Thiel committed Jul 28, 2019
1 parent 2e8d245 commit 0a43537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use std::process::ExitStatus;
pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> io::Result<ExitStatus> {
let path_ref = path.as_ref();
let mut last_err: io::Error = io::Error::from_raw_os_error(0);
for program in &["xdg-open", "gnome-open", "kde-open"] {
for program in &["wslopen", "xdg-open", "gnome-open", "kde-open"] {
match Command::new(program)
.stdout(Stdio::null())
.stderr(Stdio::null())
Expand Down

0 comments on commit 0a43537

Please sign in to comment.