diff --git a/.circleci/config.yml b/.circleci/config.yml index 236e963..45f4411 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ test: &test - checkout - run: name: Install Dependencies - command: apt-get update && apt-get install -y curl git ncurses-bin + command: apt-get update && apt-get install -y curl git ncurses-bin libnotify-bin - run: name: Download requirements command: | @@ -25,7 +25,7 @@ test: &test jobs: lint: docker: - - image: "python:3.7-stretch" + - image: "python:3.11" steps: - checkout - run: diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index 118af69..180a589 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -56,7 +56,7 @@ function _auto_notify_message() { urgency="critical" transient="" fi - notify-send "$title" "$body" --app-name=zsh "$transient" "--urgency=$urgency" "--expire-time=$AUTO_NOTIFY_EXPIRE_TIME" + notify-send "$title" "$body" --app-name=zsh $transient "--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 5704f6b..b1e00cf 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 "--app-name=zsh --urgency=normal --expire-time=15000" + assert "$lines[4]" same_as "--app-name=zsh --transient --urgency=normal --expire-time=15000" } @test 'auto-notify-send sends notification on macOS' {