Use new helper functions
This commit is contained in:
parent
715a53a91c
commit
62817e4fbe
3
calls.go
3
calls.go
@ -7,9 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func initCallNotifs(dev *infinitime.Device) error {
|
||||
// Define rule to filter dbus messages
|
||||
//rule := "type='signal',sender='org.freedesktop.ModemManager1',interface='org.freedesktop.ModemManager1.Modem.Voice',member='CallAdded'"
|
||||
|
||||
// Connect to dbus session monitorConn
|
||||
monitorConn, err := newSystemBusConn()
|
||||
if err != nil {
|
||||
|
10
notifs.go
10
notifs.go
@ -30,15 +30,7 @@ import (
|
||||
|
||||
func initNotifRelay(dev *infinitime.Device) error {
|
||||
// Connect to dbus session bus
|
||||
bus, err := dbus.SessionBusPrivate()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = bus.Auth(nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = bus.Hello()
|
||||
bus, err := newSessionBusConn()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user