GNOME Bugzilla – Bug 87873
On laptops, battery applet should be on panel by default
Last modified: 2007-06-29 13:09:29 UTC
In GNOME 1.4 if you ran the panel for the first time on a laptop, you would get a battery monitor on your panel. Do we have any idea of "conditional" applets in 2.0?
No, no such thing as conditional applets. I suppose we should dig up the old code and figure out how it did it. Putting on the 2.2.x milestone. (Oh, I'd hate this myself, btw, I've some weird apm/kernel/bios interaction problem. When you read from /proc/apm the pointer jumps, even on the console - so I won't be in any rush to implement this :-)
The ubuntu hoary array 6 liveCD seemed to do this automatically. Is this part of Gnome 2.10 now?
Created attachment 49473 [details] [review] Patch from SuSE packages This patch is from the SuSE packages. There is some if 0'ed code which I don't know if it's needed or not, so including it also. Newly added file (battery.c) attached separately.
Created attachment 49474 [details] battery.c file
We have gnome-power-manager now, and it just works. I also hope the libpanel-applet rearchitecture will make this possible, but we don't need this bug anymore.