kill snippets

Kill Mac OS disk warning notification

Tagged kill, notification, osx, disk, disk space  Languages bash

This explains how you can kill the Mac OS disk warning notification that reminds you that you need to buy more overpriced hardware with more disk space from Apple even if you have plenty of disk space left on your brand new Apple crippleware computer.

Before Mac OS Mojave this used to work:

# 1 = 1Gb
$ defaults write minFreeSpace 1
$ killall diskspaced

Setting minFreeSpace to 1 prevents the notification from showing up every second, if free disk space is above 1 Gb.

With Mojave we have to completely disable the agent:

$ launchctl unload -w /System/Library/LaunchAgents/

Tested on Mac OS Mojave and iMac crippleware.