Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
subscribe properties changed signal
Browse files Browse the repository at this point in the history
  • Loading branch information
RMTT committed Sep 28, 2020
1 parent 324e428 commit eb12e6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions theme/fly/module/battery_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ local function parse_device(path, display)
model = data["Model"]
})
end

bus:signal_subscribe("org.freedesktop.UPower", "org.freedesktop.DBus.Properties", "PropertiesChanged",
nil, nil, Gio.DBusSignalFlags.NONE, function(conn, sender, object_path, interface_name, signal_name, user_data)
print(object_path)
end)
end

local function get_devices()
Expand Down

0 comments on commit eb12e6e

Please sign in to comment.