julienXX / terminal-notifier

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

add flag to ignore "Do not Disturb" #235

Closed tmaher closed 6 years ago

tmaher commented 6 years ago

NSUserNotification has an undocumented boolean property, _ignoresDoNotDisturb, which does exactly what it sounds like. This PR adds a corresponding -ignoreDnD flag to the CLI. I was able to successfully build & run this with XCode 9.0.1 on macOS 10.13 (High Sierra), and it appears to work.

julienXX commented 6 years ago

Thanks a lot @tmaher!