dockapps/wmbattery
Jeremy Sowden 25dacf9256 wmbattery: fix a couple of potential memory-leaks.
In `cmd_crit`, if there is an allocation failure, we return from the
function immediately and leak any previously allocated memory.  Go to
the clean-up code at the end of the function instead.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2019-11-01 16:09:31 +00:00
..
autoconf wmbattery: move Makefile to Makefile.in, inline the contents of makeinfo.in and remove it. 2019-10-28 07:25:39 +00:00
.gitignore wmbattery: add .gitignore. 2019-10-28 07:25:39 +00:00
acpi.c wmbattery: Free memory allocated by strdup. 2015-08-30 21:24:10 +01:00
acpi.h wmbattery: Consistent formatting in source. 2014-10-05 19:18:50 +01:00
apm.h wmbattery: Use AC_CHECK_LIB instead of AC_CHECK_HEADERS to check for libapm. 2015-02-20 16:59:53 +00:00
autogen wmbattery: add autogen. 2019-10-28 07:25:39 +00:00
battery_blink.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
battery_high.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
battery_low.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
battery_medium.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
battery_none.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
bigfont.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
ChangeLog wmbattery: bump version to 2.53. 2019-10-29 07:00:36 +00:00
charging.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
configure.ac wmbattery: AC_INIT changes. 2019-10-29 19:59:29 +00:00
dial_bright.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
dial_dim.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
face.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
GPL wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
INSTALL wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
Makefile.in wmbattery: add dist target. 2019-10-29 19:59:29 +00:00
mask.xbm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
mask_nodial.xbm wmbattery: Add -n option to disable dial graphic. 2015-05-14 11:44:03 +01:00
nocharging.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
plugged.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
README Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
simplehal.c wmbattery: Remove unnecessary brace. 2015-05-14 11:44:03 +01:00
simplehal.h wmbattery: Consistent formatting in source. 2014-10-05 19:18:50 +01:00
smallfont.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
sonypi.c wmbattery: sunos fixes. 2019-10-29 19:59:29 +00:00
sonypi.h wmbattery: Restore BSD support. 2014-10-05 19:18:50 +01:00
TODO Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
unplugged.xpm wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
upower.c wmbattery: move labels to the beginning of the line. 2019-10-28 07:25:39 +00:00
upower.h wmbattery: Add to repository. 2014-09-21 10:11:55 +01:00
wmbattery.1 wmbattery: Fix typo in manpage. 2018-04-17 15:49:33 +01:00
wmbattery.c wmbattery: fix a couple of potential memory-leaks. 2019-11-01 16:09:31 +00:00
wmbattery.h wmbattery: Fix typos. 2015-05-14 11:44:03 +01:00

wmbattery displays the status of your laptop's battery in a small icon. This
includes if it is plugged in, if the battery is charging, how many minutes
of battery life remain, battery life remaining (with both a percentage and a
graph), and battery status (high - green, low - yellow, or critical - red).

wmbattery is based on wmapm by Chris D. Faulhaber <jedgar@speck.ml.org>
-- see the copyright file for more information.

wmapm is a nice program - why have I modified it into wmbattery? Here are
some improvements in wmbattery:

  - Improved icon layout. I crammed the same information into less space
    while making the icon more elegant and visually pleasing (IMHO).
  - Easier to drag onto dock.
  - It consumes a little less memory.
  - Uses only 10 colors.
  - You can run in on a different display via -d (broken in wmapm).
  - Support for getting battery status from the sonypi driver instead of APM,
    for some Sony laptops that do not have apm support.
  - ACPI support, including multiple battery support and battery charging
    completion countdown timer.
  - HAL support.
  - upower support.
  - Can make its own estimatess of time remaining or time until full
    charge, even if APM does not.

Conversely, here are some reasons to stick with wmapm:

  - You like its look.
  - It has a neat rainbow-colored progress bar.
  - It has buttons to suspend the laptop and stuff.
  - It may be more actively and/or better maintained. Or not.
    Decide for yourself.

Still, forking is evil, and if I was doing this all over again, I suppose
I'd try to add theme support to wmamn so it could morph into wmbattery with
a theme. Oh well.

The homepage for wmbattery is <http://kitenet.net/~joey/code/wmbattery/>

-- Joey Hess <joey@kitenet.net>