Skip to content

Commit fe7e4be

Browse files
authored
Update depNotifyReset.sh
1 parent c8dabe4 commit fe7e4be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depNotifyReset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
rm /var/tmp/com.depnotify.*
1010

1111
# Removing plists in local user folder
12-
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");')
12+
CURRENT_USER=$(/usr/bin/stat -f "%Su" /dev/console)
1313
rm /Users/"$CURRENT_USER"/Library/Preferences/menu.nomad.DEPNotify*
1414

1515
# Restarting cfprefsd due to plist changes

0 commit comments

Comments
 (0)