nudge icon indicating copy to clipboard operation
nudge copied to clipboard

cannot reopen error

Open jzastrow14 opened this issue 1 year ago • 1 comments

i getting that error again don't know why. I started with a Dev Mac and it took 3 day for the polices to update then it started to work. so i moved to 2 test users and gave them 2 weeks to update and it's past that date and every time they tried to open the nudge app they got the can not reopen error. let me know what info you need to help track down what i messed up

jzastrow14 avatar Oct 15 '24 13:10 jzastrow14

#!/bin/bash

Determine Current User

currentUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )

Determine Current User ID

currentUserUID=id -u "$currentUser"

Generate Nudge launch agent

echo "

Label com.github.macadmins.Nudge ProgramArguments /Applications/Utilities/Nudge.app/Contents/MacOS/Nudge RunAtLoad StartInterval 14400 " > /Users/$currentUser/Library/LaunchAgents/com.github.macadmins.Nudge.plist

Load Launch Agent

/bin/launchctl asuser "$currentUserUID" launchctl load /Users/$currentUser/Library/LaunchAgents/com.github.macadmins.Nudge.plist

exit 0 ## Success exit 1 ## Failure

jzastrow14 avatar Oct 15 '24 14:10 jzastrow14