diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index a6c89d1..6d680cf 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -40,7 +40,7 @@ function _auto_notify_message() { if [[ "$exit_code" != "0" ]]; then urgency="critical" fi - notify-send "$title" "$body" "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" + notify-send "$title" "$body" --app-name=zsh "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" elif [[ "$platform" == "Darwin" ]]; then osascript \ -e 'on run argv' \ diff --git a/tests/test_auto_notify_send.zunit b/tests/test_auto_notify_send.zunit index 644fd7b..5704f6b 100644 --- a/tests/test_auto_notify_send.zunit +++ b/tests/test_auto_notify_send.zunit @@ -89,7 +89,7 @@ assert "$lines[1]" same_as 'Notification Title: "f bar -r" Completed' assert "$lines[2]" same_as "Notification Body: Total time: 20 seconds" assert "$lines[3]" same_as "Exit code: 0" - assert "$lines[4]" same_as "--urgency=normal --expire-time=15000" + assert "$lines[4]" same_as "--app-name=zsh --urgency=normal --expire-time=15000" } @test 'auto-notify-send sends notification on macOS' {