so suprise that this bug is not fixed for sooooooooooo long. fixed by just include string.h
so add this line to xbattbar-check-apm.c: #include <string.h> however, even this helps preventing xbattbar from crash, it still won't read battary status correctly, but you can pass a script to read the status: here is what i have: #!/bin/sh echo "ac_line=$(acpi | grep Discharging -q -s && echo 'off' || echo 'on')" echo "battery=$(acpi | sed 's/.*, \([0-9]*\)%, .*/\1/g' | head -n1)" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/436946 Title: xbattbar-check-apm crashed with SIGSEGV in vfprintf() To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xbattbar/+bug/436946/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs