Skip to content

Commit

Permalink
Merge pull request #89 from jackpot51/patch-1
Browse files Browse the repository at this point in the history
fix: use PATH to find launcher on Redox.

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.
  • Loading branch information
Byron authored Feb 28, 2024
2 parents 4a2a5b1 + a583658 commit 0a25651
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 0a25651

Please sign in to comment.