From 997948ccad0ddd8e7ed2e87cbef1df10e14a3354 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 23 Mar 2018 18:16:40 +0200 Subject: [PATCH] Adjust macOS notification durations --- notification/notify_darwin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notification/notify_darwin.go b/notification/notify_darwin.go index f7a2d89..1d9cbbc 100644 --- a/notification/notify_darwin.go +++ b/notification/notify_darwin.go @@ -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)