So I am trying to silence the "Your Disk is Almost Full" notification from a mac running Mojave, as right now it pops up way too frequently and it is so annoying.
I followed all answers from this thread but none of them work with Mojave.
However, I made some progress as @kenorb's answer includes this command:
grep -A6 debugLog <(strings $(find /System/Library/PrivateFrameworks -name diskspaced -print -quit))
which does give some insight into how things have changed, as when I run a modified version of it, I get this:
MacBook-Pro-7:~ QH$ grep -A15 debugLog <(strings $(find /System/Library/PrivateFrameworks -name diskspaced -print -quit))
debugLog (BOOL) - log additional debug information. Default: NO
Commands:
removeAllNotifications - Removes all scheduled and delivered user notificiations.
removeAllNotifications
com.apple.diskspaced
_mbsetupuser
Ignoring low disk notification during migration.
event
low_disk
STORAGE_CRITICALLY_LOW
STORAGE_CRITICALLY_LOW_INFO
volumeURL
Low space alert: %@ free on '%@'
Unknown command
peer error: %s
unexpected peer event
--
debugLog
systemUpdateDate
com.apple.updatesettings
Interval since system update :%f
alloc
init
lowSpaceTimer
invalidate
setLowSpaceTimer:
_centerForIdentifier:type:
deliveredNotifications
countByEnumeratingWithState:objects:count:
removeDeliveredNotification:
scheduledNotifications
removeScheduledNotification:
count
Now I don't understand much about that command or macOS daemons at all, but it seems to me that the lowSpaceTimer
or setLowSpaceTimer:
might be the key to fixing things. If I can get access to one of them, and set the timer to be something high enough, I will finally get some closure on that annoying pop up. The thing is... I have no idea how to access it.
I've tried:
defaults read lowSpaceTimer
defaults read com.apple.diskspaced lowSpaceTimer
defaults read com.apple.diskspaced
(this outputs the minFreeSpace
k-v entry I wrote while trying to get it to work, but does nothing to help things as minFreeSpace
is obsolete)
Right now the popup shows up once every 6 minutes and it's driving me insane when I try to get work done.
defaults write com.apple.diskspaced removeAllNotifications
?defaults write com.apple.diskspaced removeAllNotifications true
, this worked for me in Mojave (july 2019), then if you'll need to know which value is been set, then dodefaults read com.apple.diskspaced removeAllNotifications