Created attachment 3981 remove additional dash from battery icon name In xfce4-power-manager 1.0.10, whenever I plug in my Logitech Cordless Desktop LX 500, an "icon not found" icon appears in my systray. When I looked at the code, I noticed that xfpm_battery_refresh_icon incorrectly adds an additional dash to the icon prefix when the device is not a battery or a ups. The attached patch (against git head) removes these dashes and adds an additional debug message. As this is my first time filing a bug report, I hope everything is correct ;)
Daniel, thank you for the patch! This is just a thanks and a confirmation that it solved the ugly "icon not found" icon ofor my wireless mouse as well. For convenience, I uploaded a patched Oneiric package to ppa:alexei.colin/upower .
*** Bug 9039 has been marked as a duplicate of this bug. ***
For my iphone charging status icon to show up properly I had to modify ~ Line 329 of xfpm-battery.c : - else if ( battery->priv->state == XFPM_DEVICE_STATE_DISCHARGING ) + else if ( battery->priv->state == XFPM_DEVICE_STATE_DISCHARGING || battery->priv->state == XFPM_DEVICE_STATE_CHARGING )
Created attachment 4834 Fix battery status indicator for mobile devices.
The trayicon has been removed from git master and the new panel-plugin handles this more gracefully, hence this bug has been fixed.