Developing Extensions tips



Hi anyone. 
I'm trying to improve my extension (https://extensions.gnome.org/extension/230/battery-remaining-time/) to support more-than-one-battery system.

What I'm finding difficult is that when one of the two batteries is full, the remaining time for this one is 0 and so I can't simply sum up the times.

What I was thinking, then, is that I can access the time displayed in the submenu of the battery, which is always correct.

The point is, I don't know how to do this. Any tips?

Many thanks in advance :)

--
Davide Alberelli.
___
On Google+ and deviantART.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]