After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 655298 - icon-policy missing
icon-policy missing
Status: RESOLVED NOTABUG
Product: gnome-settings-daemon
Classification: Core
Component: power
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2011-07-26 02:48 UTC by Jeremy Bicha
Modified: 2011-08-31 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2011-07-26 02:48:51 UTC
This gsettings code was removed from g-p-m but it was not brought over to g-s-d

  <enum id="org.gnome.power-manager.IconPolicy">
    <value nick="present" value="0"/>
    <value nick="charge" value="1"/>
    <value nick="low" value="2"/>
    <value nick="critical" value="3"/>
    <value nick="never" value="4"/>
  </enum>

    <key name="icon-policy" enum="org.gnome.power-manager.IconPolicy">
      <aliases>
        <alias value='always' target='present'/>
      </aliases>
      <default>'present'</default>
      <_summary>When to show the notification icon</_summary>
      <_description>Display options for the notification icon.</_description>
    </key>

Ubuntu has for years overridden this key's default to hide the battery icon when the battery is plugged in and is fully charged. Therefore a lot of users have become used to this behavior. Personally, seeing the icon when I'm not expecting it is a warning for me to make sure that my computer didn't come unplugged.
Comment 1 Allan Day 2011-07-26 09:24:37 UTC
My view is that showing an icon is a clearer way to communicate the full+charging state.

Always showing the icon also means that the system status icons won't move around.

We show a notification when the power is unplugged, so people really shouldn't miss it.
Comment 2 Jeremy Bicha 2011-07-26 10:00:34 UTC
Yes, I have no problem with Gnome choosing the option they did for default.

However, removing the ability to override this will likely shock a fair amount of Ubuntu users in a few months. Personally, as soon as I upgrade from 3.1.3 to 3.1.4 this week, I'll be hit with this functionality being removed.
Comment 3 Richard Hughes 2011-07-26 10:13:10 UTC
Jeremy, the reason I didn't port the code is that it's a non-trivial amount of code that the gnome-settings-daemon maintainer didn't like. I'm inclined to agree with the designers on this, unless you can convince the g-s-d maintainer that the extra code is worthwhile.
Comment 4 Allan Day 2011-07-26 10:24:06 UTC
(In reply to comment #3)
> I'm inclined to agree with the designers on this

My view only relates to what the GNOME UX should be. ;)
Comment 5 Matthias Clasen 2011-07-27 23:30:45 UTC
If unity wants to provide these configuration choices, it can implement its own key.
Comment 6 Jeremy Bicha 2011-07-28 03:44:38 UTC
Thanks for the comments. It is a bit of a regression but I guess it's just a wishlist item.

And yes, if Ubuntu wants it, they can use their own key with their new indicator-power app.