Description
When --sender is specified together with --timeout, the timeout is ignored and the alerter process hangs indefinitely until the user manually interacts with the notification.
Steps to Reproduce
- Run with
--timeout only (works correctly):
alerter --title "Test" --message "hello" --timeout 5 &
PID=$!; sleep 7; ps -p $PID && echo "STILL ALIVE" || echo "EXITED"
# Output: EXITED (correct)
- Run with
--timeout + --sender (broken):
alerter --title "Test" --message "hello" --timeout 5 --sender com.googlecode.iterm2 &
PID=$!; sleep 7; ps -p $PID && echo "STILL ALIVE" || echo "EXITED"
# Output: STILL ALIVE (timeout ignored)
Expected Behavior
The notification should auto-dismiss after 5 seconds regardless of --sender.
Actual Behavior
The alerter process never exits. The notification stays on screen until manually dismissed or the process is killed.
Environment
- macOS 15 (Sequoia)
- alerter v26.5 (installed via
brew install vjeantet/tap/alerter)
- Apple Silicon (arm64)
Workaround
Currently not using --sender to keep --timeout working.
Description
When
--senderis specified together with--timeout, the timeout is ignored and the alerter process hangs indefinitely until the user manually interacts with the notification.Steps to Reproduce
--timeoutonly (works correctly):--timeout+--sender(broken):Expected Behavior
The notification should auto-dismiss after 5 seconds regardless of
--sender.Actual Behavior
The alerter process never exits. The notification stays on screen until manually dismissed or the process is killed.
Environment
brew install vjeantet/tap/alerter)Workaround
Currently not using
--senderto keep--timeoutworking.