The changelog states for version 1.0.0: Showing “No battery, AC online” when no battery is inserted I run version 1.0.5. I setup to only show the bar. However, if I use the computer with the battery removed (no BAT0 entry in /sys/class/power_supply/), the plugin draws the icon (despite I choosed not to show the icon), an empty bar and a ugly "50%%" text at the right (despite I set not to display any text -except in the tooltip-). A "no battery" color would likely not be intrusive, but displaying any additional (and potentially huge) text to signal the missing battery perhaps should be configurable. At this moment I manually add (and configure) the plugin each time I install the battery for a travel, and remove it when unloading the battery to use the computer at home for several days.
I'll look into it. So far 'no battery' icon is used, but yes there could be (yet another ..) a special color for the bar if there's no battery. Atm if there's no battery the bar is empty and reflects reality, after all. I won't add a special label for when there's no battery. Code is already too much spaghetti.
Duplication of bug #9594?
Yeah - there should be a better detection of battery presence, but those days ppl should use the plugin coming with xfpm. Maybe someday i'll come back to that code... *** This bug has been marked as a duplicate of bug 9594 ***