Push implements Notifier
(title string, text string, iconPath string)
| 46 | |
| 47 | // Push implements Notifier |
| 48 | func (LibnotifyNotifier) Push(title string, text string, iconPath string) { |
| 49 | cmd := exec.Command( |
| 50 | "notify-send", prog, text, |
| 51 | ) |
| 52 | go cmd.Run() |
| 53 | } |
| 54 | |
| 55 | // PlatformNotifier finds a notifier for this platform |
| 56 | func PlatformNotifier() Notifier { |