package notifier

import (
	"os/exec"

	"github.com/Ex0dIa-dev/ssh-honeypot-go/src/helpers"
)

// SendNotify send a notification using linux "notify-send" tool
func SendNotify(appName, title, body string) {
	args := []string{}
	args = append(args, "-a", appName)
	args = append(args, title)
	args = append(args, body)

	cmd := exec.Command("notify-send", args...)
	helpers.CheckErr(cmd.Run())
}
