Skip to content

Commit

Permalink
redox: use PATH to find launcher
Browse files Browse the repository at this point in the history
Redox has moved the launcher from /ui/bin to /usr/bin. Just use the PATH to locate it, so any future changes in location don't break this crate.
  • Loading branch information
jackpot51 committed Feb 28, 2024
1 parent 4a2a5b1 commit a583658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redox.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{ffi::OsStr, process::Command};

pub fn commands<T: AsRef<OsStr>>(path: T) -> Vec<Command> {
let mut cmd = Command::new("/ui/bin/launcher");
let mut cmd = Command::new("launcher");
cmd.arg(path.as_ref());
vec![cmd]
}
Expand Down

0 comments on commit a583658

Please sign in to comment.