aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files 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()
}
}