Look through all of the devices in /sys/class/power_supply and take the statistics from the first battery and the first AC adapter.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52831 Signed-off-by: Alex Henrie alexhenrie24@gmail.com
-- v2: ntdll: Don't hard-code the battery and AC adapter names on Linux