julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.36k stars 331 forks source link

notifications are muted and i can't unmute #302

Closed getaaron closed 1 year ago

getaaron commented 1 year ago

Please check everything that applies to your issue:

To help us debug your issue please include:

  1. Open Terminal or iTerm (reproduces in both)
  2. Run terminal-notifier -title "foo" -message "bar" -group "$RANDOM"

A notification doesn't pop up but I see a notification with a 🚫 and Show button:

image

Clicking the Show button clears the notification but doesn't resolve the issue

Possibly related logs:

default 16:01:45.812979-0500    terminal-notifier   server port 0x00003b07, session port 0x00003b07
default 16:01:45.833595-0500    terminal-notifier   New connection 0xe5017 main
default 16:01:45.835407-0500    terminal-notifier   CHECKIN: pid=38679
default 16:01:45.839421-0500    terminal-notifier   CHECKEDIN: pid=38679 asn=0x0-0x106106 foreground=0
default 16:01:45.842566-0500    terminal-notifier   FRONTLOGGING: version 1
default 16:01:45.842643-0500    terminal-notifier   Registered, pid=38679 ASN=0x0,0x106106
default 16:01:45.844871-0500    terminal-notifier   BringForward: pid=38679 asn=0x0-0x106106 bringForward=0 foreground=0 uiElement=1 launchedByLS=0 modifiersCount=0 allDisabled=0
default 16:01:45.845607-0500    terminal-notifier   Current system appearance, (HLTB: 1), (SLS: 0)
default 16:01:45.846817-0500    terminal-notifier   No persisted cache on this platform.
default 16:01:45.848170-0500    terminal-notifier   Current system appearance, (HLTB: 1), (SLS: 0)
default 16:01:45.848608-0500    terminal-notifier   Post-registration system appearance: (HLTB: 1)
default 16:01:45.871851-0500    terminal-notifier   Registering for test daemon availability notify post.
default 16:01:45.871997-0500    terminal-notifier   notify_get_state check indicated test daemon not ready.
default 16:01:45.872108-0500    terminal-notifier   notify_get_state check indicated test daemon not ready.
default 16:01:45.872200-0500    terminal-notifier   notify_get_state check indicated test daemon not ready.
default 16:01:45.877150-0500    terminal-notifier   SignalReady: pid=38679 asn=0x0-0x106106
default 16:01:45.877739-0500    terminal-notifier   SIGNAL: pid=38679 asn=0x0x-0x106106
default 16:01:45.921866-0500    terminal-notifier   Received configuration update from daemon (initial)
default 16:01:46.003037-0500    terminal-notifier   Entering exit handler.
default 16:01:46.003060-0500    terminal-notifier   Queueing exit procedure onto XPC queue. Any further messages sent will be discarded. activeSendTransactions=0
default 16:01:46.003108-0500    terminal-notifier   Cancelling XPC connection. Any further reply handler invocations will not retry messages
default 16:01:46.003135-0500    terminal-notifier   XPC connection invalidated (daemon unloaded/disabled)
default 16:01:46.003129-0500    terminal-notifier   Exiting exit handler.
default 16:01:46.008955-0500    NotificationCenter  [com.apple.private.nc.dnd:EB01AA71-24C2-434D-87BD-9E44DB81ED88] Resolving behavior for event, details=<DNDMutableClientEventDetails: 0x6000023292c0; identifier: ''; bundleIdentifier:: fr.julienxx.oss.terminal-notifier; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); filterCritera: (null); notifyAnyway: 0; behavior: Default>
default 16:01:46.010915-0500    NotificationCenter  [com.apple.private.nc.dnd:EB01AA71-24C2-434D-87BD-9E44DB81ED88] Resolved event, details=<DNDMutableClientEventDetails: 0x6000023292c0; identifier: ''; bundleIdentifier:: fr.julienxx.oss.terminal-notifier; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); filterCritera: (null); notifyAnyway: 0; behavior: Default> behavior=<DNDClientEventBehavior: 0x600000c4f9c0; eventDetails: <DNDClientEventDetails: 0x600002060b90; identifier: ''; bundleIdentifier:: fr.julienxx.oss.terminal-notifier; type: Default; urgency: Default; sender: (null); threadIdentifier: (null); filterCritera: (null); notifyAnyway: 0; behavior: Default>; interruptionSuppression: silence; resolutionReason: display mirrored; activeModeUUID: (null)>
default 16:01:46.010965-0500    NotificationCenter  Resolved interruption suppression for fr.julienxx.oss.terminal-notifier as silence
default 16:01:46.011240-0500    NotificationCenter  [fr.julienxx.oss.terminal-notifier:EEB1B68A] displaying as alert with pinning behavior .mutedAlert
default 16:01:46.014914-0500    NotificationCenter  [fr.julienxx.oss.terminal-notifier:EEB1B68A] updating existing notification with content from EEB1B68A

I see references to DND (do not disturb) in here but I do not have it enabled

Common issues and solution:

Thanks!

getaaron commented 1 year ago

Never mind, I googled DNDMutableClientEventDetails and found https://www.apricot13.org/operating-systems/osx/notifications-suppressed-osx which explains that it's this setting:

image