Skip to content

Commit

Permalink
fix: scripts don't work while running ironbar under a systemd service
Browse files Browse the repository at this point in the history
Fixes #134
  • Loading branch information
JakeStanger committed May 1, 2023
1 parent bc87c7f commit 31a57ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<mpsc::Receiver<OutputStream>> {
let mut handle = Command::new("sh")
let mut handle = Command::new("/bin/sh")
.args(["-c", &self.cmd])
.stdout(Stdio::piped())
.stderr(Stdio::piped())
Expand Down

0 comments on commit 31a57ae

Please sign in to comment.