! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Configuration not respected if no battery present
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description sysman 2012-07-21 01:03:35 CEST
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.
Comment 1 Landry Breuil editbugs 2012-08-01 09:53:14 CEST
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.
Comment 2 Raphael Groner 2014-09-16 21:55:38 CEST
Duplication of bug #9594?
Comment 3 Landry Breuil editbugs 2014-09-16 22:11:59 CEST
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 ***

Bug #9140

Reported by:
sysman
Reported on: 2012-07-21
Last modified on: 2014-09-16

People

Assignee:
Landry Breuil
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information