Fix command execution
This commit is contained in:
parent
67839bb9f3
commit
ea87ef82a7
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ fn execute_button_press(
|
||||||
if !cmd.is_empty() {
|
if !cmd.is_empty() {
|
||||||
println!("cmd: {}", cmd);
|
println!("cmd: {}", cmd);
|
||||||
|
|
||||||
if let Err(err) = Command::new(cmd).spawn() {
|
if let Err(err) = Command::new("sh").arg("-c").arg(cmd).spawn() {
|
||||||
println!("failed with: {:?}", err);
|
println!("failed with: {:?}", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue