From 5b0b6973a5f93fc1e65c2f8b0dc0a4f1c378772e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 30 Apr 2017 15:33:59 +0200 Subject: Keep it uniform --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e3d1f9e..1d12ce7 100644 --- a/main.go +++ b/main.go @@ -106,9 +106,10 @@ func notify(title, s string) error { msg := fmt.Sprintf("display notification %q with title %q", s, title) return exec.Command("osascript", "-e", msg).Run() case "linux": - return exec.Command("notify-send", title, s).Run() + msg := fmt.Sprintf("%s", s) + return exec.Command("notify-send", title, msg).Run() default: // *BSD - msg := fmt.Sprintf("%s\n\n%s", title, s) + msg := fmt.Sprintf("%s\n%s", title, s) return exec.Command("xmessage", "-center", "-timeout", "5", msg).Run() } } -- cgit v1.2.3