From 6380b6bfc81a1b2c3f9b8174701bfe61639368cf Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Sat, 2 Dec 2023 15:13:00 +1000 Subject: [PATCH] fix(linux): clean up active app D-Bus watch --- internal/linux/appSensor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/linux/appSensor.go b/internal/linux/appSensor.go index 5ad8c7063..bb0a829a4 100644 --- a/internal/linux/appSensor.go +++ b/internal/linux/appSensor.go @@ -131,12 +131,11 @@ func AppUpdater(ctx context.Context, tracker device.SensorTracker) { }() err := dbushelpers.NewBusRequest(ctx, dbushelpers.SessionBus). - Path(appStateDBusPath). Match([]dbus.MatchOption{ dbus.WithMatchObjectPath(appStateDBusPath), dbus.WithMatchInterface(appStateDBusInterface), + dbus.WithMatchMember("RunningApplicationsChanged"), }). - Event(appStateDBusEvent). Handler(func(_ *dbus.Signal) { if activeAppList := dbushelpers.NewBusRequest(ctx, dbushelpers.SessionBus). Path(appStateDBusPath).