mirror of https://gitlab.com/bashrc2/epicyon
Extra notification method
parent
e01a9c0fc8
commit
166946b541
|
@ -95,6 +95,10 @@ def _desktopNotification(notificationType: str,
|
||||||
if notificationType == 'notify-send':
|
if notificationType == 'notify-send':
|
||||||
# Ubuntu
|
# Ubuntu
|
||||||
os.system('notify-send "' + title + '" "' + message + '"')
|
os.system('notify-send "' + title + '" "' + message + '"')
|
||||||
|
elif notificationType == 'zenity':
|
||||||
|
# Zenity
|
||||||
|
os.system('zenity --notification --title "' + title +
|
||||||
|
'" --text="' + message + '"')
|
||||||
elif notificationType == 'osascript':
|
elif notificationType == 'osascript':
|
||||||
# Mac
|
# Mac
|
||||||
os.system("osascript -e 'display notification \"" +
|
os.system("osascript -e 'display notification \"" +
|
||||||
|
|
Loading…
Reference in New Issue