From 31a57ae637fa5918f163c8b191916867395912f3 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Mon, 1 May 2023 20:57:08 +0100 Subject: [PATCH] fix: scripts don't work while running ironbar under a systemd service Fixes #134 --- src/script.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script.rs b/src/script.rs index 9a4d43d..8fc38ca 100644 --- a/src/script.rs +++ b/src/script.rs @@ -234,7 +234,7 @@ impl Script { debug!("Running sh with args: {args_list:?}"); - let output = Command::new("sh") + let output = Command::new("/bin/sh") .args(&args_list) .output() .await @@ -265,7 +265,7 @@ impl Script { /// Returns a `mpsc::Receiver` that sends a message /// every time a new line is written to `stdout` or `stderr`. pub async fn spawn(&self) -> Result> { - let mut handle = Command::new("sh") + let mut handle = Command::new("/bin/sh") .args(["-c", &self.cmd]) .stdout(Stdio::piped()) .stderr(Stdio::piped())