mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
fix: scripts don't work while running ironbar under a systemd service
Fixes #134
This commit is contained in:
parent
bc87c7f0d4
commit
31a57ae637
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ impl Script {
|
||||||
|
|
||||||
debug!("Running sh with args: {args_list:?}");
|
debug!("Running sh with args: {args_list:?}");
|
||||||
|
|
||||||
let output = Command::new("sh")
|
let output = Command::new("/bin/sh")
|
||||||
.args(&args_list)
|
.args(&args_list)
|
||||||
.output()
|
.output()
|
||||||
.await
|
.await
|
||||||
|
@ -265,7 +265,7 @@ impl Script {
|
||||||
/// Returns a `mpsc::Receiver` that sends a message
|
/// Returns a `mpsc::Receiver` that sends a message
|
||||||
/// every time a new line is written to `stdout` or `stderr`.
|
/// every time a new line is written to `stdout` or `stderr`.
|
||||||
pub async fn spawn(&self) -> Result<mpsc::Receiver<OutputStream>> {
|
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])
|
.args(["-c", &self.cmd])
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue