Add a comment explaining why 130 is treated as success

This commit is contained in:
Grafcube 2024-07-08 19:53:31 +05:30
parent a79a412f3a
commit 76a527a66b
No known key found for this signature in database
GPG key ID: E383688F2878A440

View file

@ -54,6 +54,9 @@ function _auto_notify_message() {
local urgency="normal"
local transient="--hint=int:transient:1"
local icon=${AUTO_NOTIFY_ICON_SUCCESS:-""}
# Exit code 130 is returned when a process is terminated with SIGINT.
# Since the user is already interacting with the program, there is no
# need to make the notification persistent.
if [[ "$exit_code" != "0" ]] && [[ "$exit_code" != "130" ]]; then
urgency="critical"
transient=""