27 lines
580 B
Go
Raw Normal View History

2024-04-29 18:13:50 +02:00
//go:build linux || freebsd
package notify
import (
"time"
2024-05-04 01:06:24 +02:00
"github.com/quexten/goldwarden/cli/logging"
2024-04-29 18:13:50 +02:00
)
var notificationID uint32 = 1000000
var log = logging.GetLogger("Goldwarden", "Dbus")
func Notify(title string, body string, actionName string, timeout time.Duration, onclose func()) {
err := notifyLibPortal(title, body, actionName, timeout, onclose)
if err != nil {
err = notifyDBus(title, body, actionName, timeout, onclose)
if err != nil {
log.Warn("error sending notification " + err.Error())
}
}
}
func ListenForNotifications() error {
return nil
}