Fix command execution

This commit is contained in:
hodasemi 2022-07-25 21:24:30 +02:00
parent 67839bb9f3
commit ea87ef82a7

View file

@ -94,7 +94,7 @@ fn execute_button_press(
if !cmd.is_empty() {
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);
}
}