Switch to private bus connection
This commit is contained in:
parent
099b0cd849
commit
75327286ef
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