This commit is contained in:
Tulir Asokan
2018-04-19 11:10:34 +03:00
parent b17ff318c2
commit b1dc965a4a
14 changed files with 29 additions and 31 deletions

View File

@ -42,9 +42,9 @@ func Send(title, text string, critical, sound bool) error {
if sound {
args = append(args, "-sound", "default")
}
// if len(iconPath) > 0 {
// args = append(args, "-appIcon", iconPath)
// }
// if len(iconPath) > 0 {
// args = append(args, "-appIcon", iconPath)
// }
return exec.Command("terminal-notifier", args...).Run()
}
title = strings.Replace(title, `"`, `\"`, -1)

View File

@ -23,9 +23,9 @@ func Send(title, text string, critical, sound bool) error {
if critical {
args = append(args, "-u", "critical")
}
// if iconPath {
// args = append(args, "-i", iconPath)
// }
// if iconPath {
// args = append(args, "-i", iconPath)
// }
args = append(args, title, text)
if sound {
soundName := "message-new-instant"

View File

@ -25,7 +25,7 @@ func Send(title, text string, critical, sound bool) error {
Message: message,
Audio: toast.Silent,
Duration: toast.Short,
// Icon: ...,
// Icon: ...,
}
if sound {
notification.Audio = toast.IM