Skip to content

Commit

Permalink
fix(linux): clean up users D-Bus watch
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Dec 2, 2023
1 parent 6fad74e commit fd14a16
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/linux/usersSensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,10 @@ func UsersUpdater(ctx context.Context, tracker device.SensorTracker) {
updateUsers()

err := dbushelpers.NewBusRequest(ctx, dbushelpers.SystemBus).
Path(login1DBusPath).
Match([]dbus.MatchOption{
dbus.WithMatchObjectPath(login1DBusPath),
dbus.WithMatchInterface("org.freedesktop.DBus.Properties"),
}).
Event("org.freedesktop.DBus.Properties.PropertiesChanged").
Handler(func(s *dbus.Signal) {
switch s.Name {
case "org.freedesktop.login1.Manager.SessionNew",
Expand Down

0 comments on commit fd14a16

Please sign in to comment.