Skip to content

Bug: --timeout does not work when --sender is specified #66

Description

@tjx666

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

  1. 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)
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions