21 lines
572 B
Go
21 lines
572 B
Go
//go:build !linux
|
|||
|
|
|
||
|
|
package notify
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"errors"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Without the freedesktop Notifications service there is no bus path; the
|
||
|
|
// OS tool does the job (no actions).
|
||
|
|
|
||
|
|
var errNoDBus = errors.New("notify: no D-Bus notification service on this platform")
|
||
|
|
|
||
|
|
func dbusAvailable() bool { return false }
|
||
|
|
func dbusSupportsActions() bool { return false }
|
||
|
|
func dbusDescribe() (string, bool) { return "", false }
|
||
|
|
func dbusClose(uint32) {}
|
||
|
|
func dbusNotify(context.Context, string, []string, func(string)) (uint32, error) {
|
||
|
|
return 0, errNoDBus
|
||
|
|
}
|