Switch to private bus connection
This commit is contained in:
parent
082fdc02f4
commit
22709439c4
10
notifs.go
10
notifs.go
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user