From 2dc3c62bbd0cb261b51cc2e4529fa24ca9d7c565 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 22 Feb 2016 19:44:10 -0500 Subject: [PATCH] The svc resource should use the private system bus of course I didn't realize there was a difference until I was debugging an issue with the pkg resource, which also uses dbus! --- svc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svc.go b/svc.go index e72210ec..b2570db8 100644 --- a/svc.go +++ b/svc.go @@ -80,7 +80,8 @@ func (obj *SvcRes) Watch() { } defer conn.Close() - bus, err := dbus.SystemBus() + // if we share the bus with others, we will get each others messages!! + bus, err := SystemBusPrivateUsable() // don't share the bus connection! if err != nil { log.Fatal("Failed to connect to bus: ", err) }