From 6fad74eb8469753b2cc4bce5149ce1894ce007ef Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Sat, 2 Dec 2023 15:15:04 +1000 Subject: [PATCH] fix(linux): clean up location sensor D-Bus watch --- internal/linux/locationSensor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/linux/locationSensor.go b/internal/linux/locationSensor.go index a1059fb81..b110540bf 100644 --- a/internal/linux/locationSensor.go +++ b/internal/linux/locationSensor.go @@ -119,12 +119,11 @@ func LocationUpdater(ctx context.Context, tracker device.SensorTracker) { }() err := dbushelpers.NewBusRequest(ctx, dbushelpers.SystemBus). - Path(clientPath). Match([]dbus.MatchOption{ dbus.WithMatchObjectPath(clientPath), dbus.WithMatchInterface(clientInterface), + dbus.WithMatchMember("LocationUpdated"), }). - Event(locationUpdatedSignal). Handler(locationUpdateHandler). AddWatch(ctx) if err != nil {