Close System Preferences window (#6329)

This commit is contained in:
Aleksandr Chebotov
2022-09-29 21:58:02 +02:00
committed by GitHub
parent 4944af825e
commit 0ca065b7c2

View File

@@ -45,6 +45,10 @@ fi
# Validate "Parallels International GmbH" kext
if is_Monterey; then
echo "Closing System Preferences window if it is still opened"
killall "System Preferences" || true
echo "Checking parallels kexts"
dbName="/var/db/SystemPolicyConfiguration/KextPolicy"
dbQuery="SELECT * FROM kext_policy WHERE bundle_id LIKE 'com.parallels.kext.%';"
kext=$(sudo sqlite3 $dbName "$dbQuery")