From fe7e4bedffa1ef6fc44c38597e896c071fb2022d Mon Sep 17 00:00:00 2001 From: Leslie Helou Date: Thu, 17 Jun 2021 10:29:42 -0400 Subject: [PATCH] Update depNotifyReset.sh --- depNotifyReset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depNotifyReset.sh b/depNotifyReset.sh index c47bb41..92245ac 100644 --- a/depNotifyReset.sh +++ b/depNotifyReset.sh @@ -9,7 +9,7 @@ rm /var/tmp/com.depnotify.* # Removing plists in local user folder - CURRENT_USER=$(/usr/bin/python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "\n");') + CURRENT_USER=$(/usr/bin/stat -f "%Su" /dev/console) rm /Users/"$CURRENT_USER"/Library/Preferences/menu.nomad.DEPNotify* # Restarting cfprefsd due to plist changes