gnome-power-manager and gnome session icon bug

gnome-power-manager shows a GtkStatusIcon of the battery state. When gnome-power-manager is launched from gnome-session at login time, the icon is not shown on the panel, even though the icon name is set and it’s set visible. It isn’t shown even doing by setting the filename icon again and doing gtk_status_icon_set_visible() several seconds after starting. gtk_status_icon_is_embedded() is always false.

If I do “killall gnome-power-manager”, gnome-session respawns the binary (because of X-GNOME-AutoRestart) and the icon shows correctly. It also starts correctly if you launch it manually from gnome-terminal.

Even if I remove the X-GNOME-Autostart-Phase=Panel (so that it starts as an application, well after the panel is formed) it still doesn’t show.

If you’ve got any tips on how to debug this I would appreciate it. I’m out of ideas. Thanks.

6 responses to “gnome-power-manager and gnome session icon bug”

  1. lucasr

    Isn’t it because the notification area applet is loaded after the power manager status icon? Probably a bug in the notification area applet?

  2. behdad

    Please don’t start it in phase Panel or that will delay the entire login sequence.

  3. Senate Stimulus Bill Page: 84

    […] gnome-power-manager and gnome session icon bug « Technical Blog of … […]

  4. lucasr

    Richard, as Behdad commented, you shouldn’t start g-p-m on panel phase (bug #571330).

Bad Behavior has blocked 2769 access attempts in the last 7 days.