Files
clip-sync/internal/notify/notify_linux.go
T

16 lines
329 B
Go

//go:build linux
package notify
import "os/exec"
// Notifier uses notify-send (libnotify) on Linux.
type notifier struct{}
// New returns a Linux notifier using notify-send.
func New() Notifier { return notifier{} }
func (notifier) Notify(title, body string) error {
return exec.Command("notify-send", title, body).Run()
}