aboutsummaryrefslogtreecommitdiff
path: root/notification
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-20 23:57:51 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-20 23:57:51 +0200
commit3ad2c11865a9b4b4d5128553eb3bbcb0c1969133 (patch)
treef812f982c03cb5a99f415c22635ea042313a218e /notification
parent68a48c08a57bfbe316bface95ba060dad1d2d42b (diff)
Fix macOS notifications not compiling
Diffstat (limited to 'notification')
-rw-r--r--notification/notify_darwin.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/notification/notify_darwin.go b/notification/notify_darwin.go
index ea64c36..3a4a8c2 100644
--- a/notification/notify_darwin.go
+++ b/notification/notify_darwin.go
@@ -16,7 +16,11 @@
package notification
-import "os/exec"
+import (
+ "os/exec"
+ "fmt"
+ "strings"
+)
var TerminalNotifierAvailable = false
@@ -40,7 +44,7 @@ func Send(title, text string, critical bool) error {
}
title = strings.Replace(title, `"`, `\"`, -1)
text = strings.Replace(text, `"`, `\"`, -1)
- notification := fmt.Sprintf("display notification \"%s\" with title \"%s\" subtitle \"%s\"", text, o.AppName, title)
+ notification := fmt.Sprintf("display notification \"%s\" with title \"gomuks\" subtitle \"%s\"", text, title)
return exec.Command("osascript", "-e", notification).Run()
}