mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Added option to not interrupt Do Not Disturb full screen apps like KeyNote or Zoom
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user