master sewn/kohai / ui / dbus_fallback.go
 1//go:build !linux && !darwin
 2
 3package ui
 4
 5import "fmt"
 6
 7func (ui *UI) notify(target NotifyEvent, title, content string) int {
 8	ui.vx.Notify(title, content)
 9	return -1
10}
11
12func notifyClose(id int) {}
13
14func Screenshot() error {
15	return fmt.Errorf("failed to take screenshot: D-Bus is disabled")
16}
17
18func DBusStart(callback func(any)) {}
19
20func DBusStop() {}