From a583658a2f2cfea64c3be6e12cef159f5cbc7fbf Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 27 Feb 2024 20:26:03 -0700 Subject: [PATCH] redox: use PATH to find launcher 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. --- src/redox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redox.rs b/src/redox.rs index 8fab343..1a3e017 100644 --- a/src/redox.rs +++ b/src/redox.rs @@ -1,7 +1,7 @@ use std::{ffi::OsStr, process::Command}; pub fn commands>(path: T) -> Vec { - let mut cmd = Command::new("/ui/bin/launcher"); + let mut cmd = Command::new("launcher"); cmd.arg(path.as_ref()); vec![cmd] }