From: Einar Jørgen Haraldseid Date: Thu, 10 Oct 2019 13:10:50 +0000 (+0200) Subject: Maybe restarting cups helps with unwanted prompts X-Git-Url: https://git.slaskete.net/einar-bin/commitdiff_plain/ede3c9afce403ba9cd21a0112dc55a751fc049cf?ds=inline Maybe restarting cups helps with unwanted prompts --- diff --git a/addfollowmeprint.sh b/addfollowmeprint.sh index 7338e15..d0d0868 100755 --- a/addfollowmeprint.sh +++ b/addfollowmeprint.sh @@ -324,11 +324,13 @@ if [ "${Uname}" = "darwin" ]; then OS_Min_Vers=$(sw_vers | grep ProductVersion | awk '{print $2}' | cut -d "." -f2) if [ "${OS_Min_Vers}" -ge 12 ]; then echo "\nNOTE: You need to provide your local Mac password again here in order to give the printing system access to your credentials.\n" - security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" + security set-internet-password-partition-list -S "apple-tool:,apple:" -s "${PrintServer}" > /dev/null fi sudo cupsenable "${QueueName}" sudo cupsaccept "${QueueName}" + sudo launchctl stop org.cups.cupsd + sudo launchctl start org.cups.cupsd fi # Set correct paper size and enable the duplexer option