Switch to private bus connection

This commit is contained in:
Elara 2021-11-23 22:03:41 -08:00
parent 099b0cd849
commit 75327286ef

View File

@ -30,7 +30,15 @@ import (
func initNotifRelay(dev *infinitime.Device) error { func initNotifRelay(dev *infinitime.Device) error {
// Connect to dbus session bus // 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 { if err != nil {
return err return err
} }