Adjust macOS notification durations

This commit is contained in:
Tulir Asokan 2018-03-23 18:16:40 +02:00
parent 76cfbecc09
commit 997948ccad

View File

@ -35,7 +35,9 @@ func Send(title, text string, critical bool) error {
if TerminalNotifierAvailable {
args := []string{"-title", "gomuks", "-subtitle", title, "-message", text}
if critical {
args = append(args, "-timeout", "30")
args = append(args, "-timeout", "15")
} else {
args = append(args, "-timeout", "4")
}
// if len(iconPath) > 0 {
// args = append(args, "-appIcon", iconPath)