Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix battery status querying on GNU/Linux
The code was looking at the wrong bus (why on Earth does D-Bus have two distinct buses, anyway?), and failed to unpack the return value from a variant. It seems to now work correctly, although UPower seems to categorize my desktop PC's power source as "unknown" rather than the more accurate "line power". No harm done because our code only shows the battery indicator if the device is detected to have a battery.
- Loading branch information
Showing
1 changed file
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters