! 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 !
Monitor shows "50%%" if "Display percentage" is on and battery's absent
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Jason Spiro 2012-04-19 01:45:53 CEST
Sometimes laptop users remove their battery while on AC power.  For example, they might do this to avoid wearing out the battery.  Or to eliminate the risk of a plugged-in-battery fire while the laptop's unattended.

Steps to reproduce:
-  xfce4-battery-plugin starts up
-  there's no battery present
-  and the "Display Percentage" option is on

Symptom:
-  the battery monitor shows the strange text "50%%" in the percentage area.

This could make some people think their battery is plugged in when it actually isn't.  If they then disconnect their AC power, they might lose unsaved work.

Suggested fix:
-  Instead of "50%%", please show the number "0" (without a percentage sign) to show there's no battery.  This will never fool anyone into thinking they have battery power available.  Or, if you insist, you can use the word "none" instead of "0".
Comment 1 Jason Spiro 2012-04-19 01:47:20 CEST
I'm using xfce4-battery-plugin 0.5.1 on xfce on Debian Linux 6.0.4.
Comment 2 Jason Spiro 2012-04-19 01:55:49 CEST
Please also see my other battery-not-present issue:

Bug 8734 - Please show a battery-not-present icon if no battery is present in a laptop
Comment 3 Landry Breuil editbugs 2012-04-19 10:11:47 CEST
Fixed in http://git.xfce.org/panel-plugins/xfce4-battery-plugin/commit/?id=409ff695af87616fc7bb2c6bc07a2e7e3df1b018 / version 1.0.1.

*** This bug has been marked as a duplicate of bug 8631 ***

Bug #8733

Reported by:
Jason Spiro
Reported on: 2012-04-19
Last modified on: 2012-04-19

People

Assignee:
Florian Rivoal
CC List:
1 user

Version

Version:
0.5.1 or older

Attachments

Additional information