Files
luxtools-client/internal/notify/notify.go

17 lines
305 B
Go

package notify
import (
_ "embed"
"github.com/gen2brain/beeep"
)
//go:embed info.png
var icon []byte
// Show shows a desktop notification if possible.
// It must never panic and callers should treat it as fire-and-forget.
func Show(title, message string) {
_ = beeep.Notify(title, message, icon)
}