Version bumped to 0.6.7

This commit is contained in:
cyber-sushi 2024-05-08 20:08:46 +02:00
parent 3f4df618d9
commit ce7071ce00
3 changed files with 21 additions and 3 deletions

2
Cargo.lock generated
View file

@ -583,7 +583,7 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
[[package]]
name = "makima"
version = "0.6.6"
version = "0.6.7"
dependencies = [
"evdev",
"fork",

View file

@ -1,6 +1,6 @@
[package]
name = "makima"
version = "0.6.6"
version = "0.6.7"
edition = "2021"
[dependencies]

View file

@ -446,7 +446,25 @@ impl EventReader {
}
}
},
_ => {}
Err(_) => {
for command in command_list {
match fork() {
Ok(Fork::Child) => {
Command::new("sh")
.arg("-c")
.arg(command)
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
.spawn()
.expect("Failed to run command.");
std::process::exit(0);
},
Ok(Fork::Parent(_)) => (),
Err(_) => std::process::exit(1),
}
}
}
}
},
Ok(_) => {