Skip to content

Commit

Permalink
Use timeout for notify-send (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l authored Oct 18, 2023
1 parent 811a435 commit 4dbb1d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ fn main() {
"unknown panic"
};

let _ = std::process::Command::new("notify-send")
let _ = std::process::Command::new("timeout")
.args(&[
"1s",
"notify-send",
concat!("--app-name=", prog_name!()),
concat!(prog_name!(), " has panicked!"),
msg,
Expand Down

0 comments on commit 4dbb1d8

Please sign in to comment.