Comment 3 for bug 1096322

Revision history for this message
Heath Paddock (heathbar) wrote : Re: Battery Power "critically low" is blank

If you change the value in dconf-editor to either hibernate or shutdown, then the power plug works correctly. However, if you click the "Set to Default" button then it doesn't.

Looking under the hood: settings.get_enum ("critical-battery-action");
returns a 1 when critical-battery-action is set to default (hibernate) in dconf-editor
returns a 3 if you select hibernate in dconf-editor
returns a 2 if you select shutdown in dconf-editor

Since power plug is expecting a 2 or 3, the default value of 1 is ignored. So why do we get a 1 when the key is set to the default, hibernate, when hibernate is the 3rd item in the list?