Switch to private bus connection

This commit is contained in:
Elara 2021-11-23 22:03:41 -08:00
parent 082fdc02f4
commit 22709439c4

View File

@ -30,7 +30,15 @@ import (
func initNotifRelay(dev *infinitime.Device) error {
// Connect to dbus session bus
bus, err := dbus.SessionBus()
bus, err := dbus.SessionBusPrivate()
if err != nil {
return err
}
err = bus.Auth(nil)
if err != nil {
return err
}
err = bus.Hello()
if err != nil {
return err
}