Power Management... does nothing without gnome-power-manager

Bug #694864 reported by Cris Dywan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Battery Status
Incomplete
Medium
Ivan Zorin

Bug Description

Currently the 'Power Management...' menu item does nothing if gnome-power-manager is not installed. This is confusing to users and without reading the source it looks broken.

I would like to suggest two ways to solve the issue:

1. Hide the menuitem if gnome-power-manager is unavailable.

2. If you are willing to support this, try to call xfce4-power-manager as well, and otherwise like 1.

Revision history for this message
Cris Dywan (kalikiana) wrote :

After reading the source, I found the package checks, so I went for a different fix: set self.package_power to False initially. And also fix an if which decides whether to show the separator.

So the other suggestion involving checks for the executables can be seen as enhancements and this patch would solve the immediate bug at hand.

Revision history for this message
Ivan Zorin (iaz) wrote :

Thank you for taking the time to report this bug and helping to make BatteryStatus better.
And sorry for delay.

> set self.package_power to False initially

Right, so I guess, that it should be set to "False" by default.
However, I'm not a familiar with XFCE very well, but via gconf-editor you can switch integration of gnome-power-manager in battery-status menu using commands:
 - for switch on:
 $ gconftool --set --type bool /apps/battery_status/show_power 1
 - for switch off:
 $ gconftool --set --type bool /apps/battery_status/show_power 0

Is that working in XFCE? Is that working as it should?

Changed in battery-status:
assignee: nobody → Ivan Zorin (iaz)
importance: Undecided → Medium
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.