Teamviewer QuickSupport EULA

Tim_Apple
New Contributor III

Hello,
is there any way to automatically accepting the End-User License Agreement when starting Teamviewer QuickSupport for the first time? I couldn't finde something on Google.

f30acebbb39a4d59b48e5de0121b3324

Thanks in advance for any help!

2 REPLIES 2

Tim_Apple
New Contributor III

Push

BookMac
Contributor II

This is our solution:

#!/bin/zsh

# Get the currently logged in user
currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' )

# Get uid logged in user
uid=$(id -u "${currentUser}")

runAsUser() {
if [[ "${currentUser}" != "loginwindow" ]]; then
launchctl asuser "$uid" sudo -u "${currentUser}" "$@"
else
echo "no user logged in"
exit 1
fi
}

runAsUser defaults write com.teamviewer.teamviewer.preferences.Machine "EulaAcceptedQS" -integer "1"
 
exit 0