I’m not sure how my computer got into this funky state, but I was playing around with a DEPNotify script, and after a while, I was suddenly getting these errors every time I tried to run it:
DEPNotify[12422:409983] Failed to set (keyPath) user defined inspected property on (DEPNotify.WindowController): [
DEPNotify[12422:409983] Failed to set (backgroundColor) user defined inspected property on (DEPNotify.ViewController): [
I tried rebooting my Mac. That didn’t make the problem go away. I tried creating a new user account, and that didn’t either. It didn’t matter whether I ran my script or just manually invoked DEPNotify with a single command. The screen would flash briefly, as if something were launching, but there was no DEPNotify window, and it wasn’t hidden or minimized.
When I did a Google search on the error, the only real results were someone not using the
-fullScreen option properly two years ago and another case in which a script that starts DEPNotify just needed an update.
Unrelated to my problem (which I asked helped for but got no response), Arek Dreyer on the MacAdmins Slack (thanks, Arek!) was responding to someone else’s problem with the depNotifyReset.sh script. I didn’t run the script but tried to run the individual commands.
What ended up fixing it for me was
sudo rm /var/tmp/depnotify.log and then
killall cfprefsd. Then DEPNotify was functioning again!
2 responses to “Fixing DEPNotify GUI not launching with keyPath error”
Hi – I just, inexplicably, started getting this on the systems I’m testing for a DEPnotify-based zero-touch deployment – every time I wipe and re-install to re-enroll, I get past the account creation screen only to get dumped to the Desktop, at which point all of the setup policies defined by my DEPnotify control script run. But DEPNotify itself never kicks in in order to go to fullscreen mode while these policies run!
My question is: where are you doing the rm and killall commands you describe – are you adding them to your depnotify control script?
Those commands aren’t meant to be scripted. It’s just for general troubleshooting.