hayai/vendor/github.com/gen2brain/beeep/alert_unix.go
2024-12-21 17:26:50 +01:00

13 lines
351 B
Go

//go:build linux || freebsd || netbsd || openbsd || illumos
// +build linux freebsd netbsd openbsd illumos
package beeep
// Alert displays a desktop notification and plays a beep.
func Alert(title, message, appIcon string) error {
if err := Notify(title, message, appIcon); err != nil {
return err
}
return Beep(DefaultFreq, DefaultDuration)
}