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 683080 - power indicator is blank
power indicator is blank
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-31 05:03 UTC by darkxst
Modified: 2012-09-01 07:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
statusArea: Power indicator is not hidden (1.58 KB, patch)
2012-08-31 05:46 UTC, darkxst
rejected Details | Review
statusArea: Power indicator is not hidden (918 bytes, patch)
2012-08-31 08:04 UTC, darkxst
none Details | Review
statusArea: Power indicator is not hidden (919 bytes, patch)
2012-08-31 08:21 UTC, darkxst
none Details | Review
I think this is a cleaner patch. (1.07 KB, patch)
2012-09-01 02:25 UTC, darkxst
committed Details | Review

Description darkxst 2012-08-31 05:03:16 UTC
I have noticed a blank area in my status area that is apparently the power indicator (if I click on that blank space get a menu with power settings in it). 

In the past, on this desktop system the power indicator was completely hidden. I assume that is still the expected behaviour.

Currently there is an empty actor and associated menu.
Comment 1 darkxst 2012-08-31 05:46:43 UTC
Created attachment 223023 [details] [review]
statusArea: Power indicator is not hidden

On a desktop system the power indicator does not get hidden correctly,
this patch fixes the desktop case, however I don't have a laptop with
3.5 beta to test that.
Comment 2 Giovanni Campagna 2012-08-31 07:39:18 UTC
Review of attachment 223023 [details] [review]:

Sorry, your patch is wrong, as it hides the indicator on laptops with no primary (i.e. discharging) battery.
More debugging is needed to find out if this is a shell bug or a gnome-settings-daemon bug.

For example, could you post the output of
gdbus introspect --session --dest org.gnome.SettingsDaemon --object-path /org/gnome/SettingsDaemon/Power --only-properties

Thank you
Comment 3 darkxst 2012-08-31 07:47:59 UTC
Here is the output for that command. 

node /org/gnome/SettingsDaemon/Power {
  interface org.gnome.SettingsDaemon.Power {
    properties:
      readonly s Icon = '';
      readonly s Tooltip = '';
  };
};
Comment 4 darkxst 2012-08-31 07:53:09 UTC
ok, so the problem is in _syncIcon() then
Comment 5 darkxst 2012-08-31 08:04:59 UTC
Created attachment 223026 [details] [review]
statusArea: Power indicator is not hidden

On a desktop system the power indicator does not get hidden correctly,
since a blank icon '' is returned instead of null.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-08-31 08:15:13 UTC
Review of attachment 223026 [details] [review]:

Given that DBus has no concept of NULL, I wonder if the original code ever worked?
Comment 7 darkxst 2012-08-31 08:21:39 UTC
Created attachment 223027 [details] [review]
statusArea: Power indicator is not hidden

On a desktop system the power indicator does not get hidden correctly,
since a blank icon '' is returned instead of null.
Comment 8 darkxst 2012-08-31 08:27:45 UTC
missed you review magcius, my patch 223026 was broken logic.. but if dbus doesn’t know about null, then perhaps it should just be?

let hasIcon = (icon != '');
Comment 9 Giovanni Campagna 2012-08-31 09:55:06 UTC
(In reply to comment #8)
> missed you review magcius, my patch 223026 [details] was broken logic.. but if dbus
> doesn’t know about null, then perhaps it should just be?
> 
> let hasIcon = (icon != '');

Yes, that's the correct code.
(Previously, we had !icon, which works for null or '')
Comment 10 darkxst 2012-09-01 02:25:27 UTC
Created attachment 223115 [details] [review]
I think this is a cleaner patch.

statusArea: hide power indicator on desktop

On a desktop system the power indicator does not get hidden correctly,
since a blank icon '' is returned instead of null.
Comment 11 drago01 2012-09-01 07:29:32 UTC
Review of attachment 223115 [details] [review]:

Yeah that one looks good.
Comment 12 drago01 2012-09-01 07:42:09 UTC
Comment on attachment 223115 [details] [review]
I think this is a cleaner patch.

Pushed as 87e021cd2