- Package:
- gnome-power-manager
- Source:
- gnome-power-manager
- Description:
- power management tool for the GNOME desktop
- Submitter:
- Tomaz Solc
- Date:
- 2011-11-30 11:33:09 UTC
- Severity:
- normal
Hi Gnome-power-manager crashes when I try to view the "Details" pane in the "Power Statistics" window for a battery that is not currently installed (BAT1). Console says: ERROR:gpm-upower.c:656:gpm_device_state_to_localised_string: code should not be reached gpm_device_state_to_localised_string() doesn't seem to handle the "Unknown" state returned by libupower. I'm attaching a simple patch that adds that case and fixes the crash. Best regards Tomaž Šolc