Added option to not interrupt Do Not Disturb full screen apps like KeyNote or Zoom

This commit is contained in:
Raptor399
2021-10-12 12:14:29 +02:00
parent 4b53da0fb7
commit 9e2fa65670
4 changed files with 44 additions and 0 deletions

View File

@@ -8,6 +8,13 @@ esac
# MARK: application download and installation starts here
if [[ ${INTERRUPT_DND} = "no" ]]; then
# Check if a fullscreen app is active
if hasDisplaySleepAssertion; then
cleanupAndExit 1 "active display sleep assertion detected, aborting"
fi
fi
printlog "BLOCKING_PROCESS_ACTION=${BLOCKING_PROCESS_ACTION}"
printlog "NOTIFY=${NOTIFY}"