Extra notification method

main
Bob Mottram 2021-03-11 10:01:05 +00:00
parent e01a9c0fc8
commit 166946b541
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ def _desktopNotification(notificationType: str,
if notificationType == 'notify-send':
# Ubuntu
os.system('notify-send "' + title + '" "' + message + '"')
elif notificationType == 'zenity':
# Zenity
os.system('zenity --notification --title "' + title +
'" --text="' + message + '"')
elif notificationType == 'osascript':
# Mac
os.system("osascript -e 'display notification \"" +