diff --git a/fragments/functions.sh b/fragments/functions.sh index 39c446d..aaa96b2 100644 --- a/fragments/functions.sh +++ b/fragments/functions.sh @@ -122,9 +122,10 @@ displayNotification() { # $1: message $2: title ;; swiftdialog) if [ -x "$swiftDialog" ]; then - "$swiftDialog" --message "$message" --title "$title" --mini + "$swiftDialog" --message "$message" --title "$title" --$swiftDialogNotification else printlog "ERROR: $swiftDialog not installed for showing notifications. Falling back to AppleScript" + FallBacktoAS=true fi ;; applescript) diff --git a/fragments/header.sh b/fragments/header.sh index 756ef32..2627353 100644 --- a/fragments/header.sh +++ b/fragments/header.sh @@ -26,7 +26,7 @@ NOTIFICATIONTYPE=jamf # Notification Sources jamfManagementAction="/Library/Application Support/JAMF/bin/Management Action.app/Contents/MacOS/Management Action" swiftDialog="/usr/local/bin/dialog" - +swiftDialogNotification=mini # - appVersionKey: (optional) # How we get version number from app. Default value