phragment/tp-battery-icon — pull request #4 by michaelkrisper (2012-11-16 17:51:35+00:00)
Title: patch if the "capacity" file not exists

getPercentage tries to read the capacity file, but fails if capacity not exists in the current layout.

I on Xubuntu 12.10 don't have such a layout, therefore my improvement suggestion:
Changed it to energy_full / energy_now if an error occurs during reading "capacity".