Skip to content

Commit

Permalink
Update depNotifyReset.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
BIG-RAT authored Jun 17, 2021
1 parent c8dabe4 commit fe7e4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depNotifyReset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe7e4be

Please sign in to comment.