Permalink
Browse files

silence notifications on windows

  • Loading branch information...
justone committed Sep 17, 2018
1 parent 6db018c commit a5fe50ea0ab65f403af4c06bf904150efaa3f706
Showing with 1 addition and 1 deletion.
  1. +1 −1 util.go
@@ -104,7 +104,7 @@ func displayNotice(message string, sticky bool) error {
cmd = exec.Command("terminal-notifier", "-message", message)
logrus.Debugf("Using terminal-notifier for notification.")
} else if _, err := exec.LookPath("SnoreToast"); err == nil {
cmd = exec.Command("SnoreToast", "-t", "PMB", "-m", message)
cmd = exec.Command("SnoreToast", "-silent", "-t", "PMB", "-m", message)
logrus.Debugf("Using SnoreToast for notification.")
} else if _, err := exec.LookPath("notify-send"); err == nil {
cmdParts := []string{"notify-send", "pmb", message}

0 comments on commit a5fe50e

Please sign in to comment.