On a recent Rawhide LiveCD, icon_policy=present is the default but there is not GUI to set it. The config GUI only shows:
( ) Never display icon
( ) Always display icon
Both are unset. If I tick any of them, the setting is changed and I have to use gconf to set "present" again.
Do you have any batteries ?
My prefs show:
( ) Only display an icon if the battery is low
( ) Only display an icon when charging or discharging
( ) Only display an icon when battery is present
( ) Always display an icon
And I assume one of those is actually ticked?
To answer your question, at the time of test I was running on AC with no battery inserted, but I inserted it just to test this and the options stayed the same two. Besides, "present" (which is "Only display an icon when battery is present") seems to be "the" setting for people running without battery at times and changing the prefs based on that seems to be very confusing.
Can P-M detect if there is any battery _slot_? If so, and if this is not the case, only displaying the two options makes sense.
DeviceKit-power doesn't expose any battery devices if they are "missing". I guess we could add a has-battery-bay property, but that would have to be a F13 feature. If you want to work on a patch for that, I would be very welcome -- I'm really busy with F12 release stuff.
The simple fix for F12 would appear to be: always show all options ?
(In reply to comment #4)
> The simple fix for F12 would appear to be: always show all options ?
Do you think that's a good default for upstream? That solves a few other problems too, as a "low battery" also corresponds with USB wireless mice and that sort of thing that can be plugged in much after you've set policy.
I think always showing all options is not too big a deal, and it is much better than risking people getting confused by changing sets of options, like we have right here.
Author: Richard Hughes <firstname.lastname@example.org>
Date: Wed Sep 30 13:57:56 2009 +0100
Do not hide some radio buttons depending on the current machine state
I'll cherry-pick into gnome-2-28 for 2.28.1 in a couple of weeks time.