On Mac, Notification Center "Do Not Disturb" setting becomes permanent
See original GitHub issueI updated to v2.1.0. I noticed the “DND” option was checked by default, so I unchecked it immediately. I recorded something.
A few minutes later, I notice I’m not getting any notifications. I see that Notification Center is disabled, “until midnight”. I enable it. I restart my Mac. Notification Center is once again disabled.
I open ~/Library/Preferences/ByHost/com.apple.notificationcenterui.<guid>.plist
. I see that dndStart
is set to 0
(indicating 0:00 on a 24-hour clock, I assume) and dndEnd
is set to 1440
(indicating 24:00). This means that I won’t be getting notifications forever. I manually change both values to 0
(or alternatively, you can delete them), and I restart my Mac. Notification Center is enabled. The post here was useful in fixing this.
This started with this update.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top GitHub Comments
A new patch release is out: https://github.com/wulkano/kap/releases/tag/v2.1.1
Hi! Thanks for reporting this.
Did you record anything before turning the setting off?
When the setting is enabled, this code is ran at record start: https://github.com/sindresorhus/do-not-disturb/blob/master/Sources/do-not-disturb/DoNotDisturb.swift#L15-L19
these lines are for disabling: https://github.com/sindresorhus/do-not-disturb/blob/master/Sources/do-not-disturb/DoNotDisturb.swift#L27-L32
Here it’s disabled when the recording is stopped (inside Kap):
https://github.com/wulkano/kap/blob/2e4b42ffc2439c23d290783e2d968277f6cedf22/app/src/renderer/js/main.js#L172-L174
Maybe we should run the disable code when the setting is disabled in preferences?