Skip to content

Commit

Permalink
fix(linux): clean up active app D-Bus watch
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Dec 2, 2023
1 parent d1eefeb commit 6380b6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/linux/appSensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 6380b6b

Please sign in to comment.