Quantcast
Channel: PowerDevil activity
Viewing all articles
Browse latest Browse all 1684

Jakob Petsovits opened merge request !425: applets/batterymonitor: React to D-Bus service (un)register events at Plasma / PowerDevil

$
0
0

Previously, the "Power and Battery" applet only checked for thepresence of PowerDevil's D-Bus services once when it starts up.This appears to (mostly?) work for applets embedded in a panel,but does not work for applets on the desktop itself.Likely there's a timing issue and applets on the desktop startsooner than PowerDevil will advertise its services.

A better way to work is for the applet to monitor the bus for whenthe relevant services appear or disappear. When observing a serviceregistered or unregistered event, the applet gets set up accordingly.

This fixes the race condition for two out of three applet parts(power profiles, inhibitions) but does not fix battery status;the data for that is coming from BatteryControlModelin plasma-workspace. A similar fix will have to be implemented there.

CCBUG: 488915CCBUG: 489003CCBUG: 492859CCBUG: 492945


Bugs 488915, 489003: not yet closing because this is only a partial fix.

Bugs 492859, 492945: not yet closing because the cause of the bug is a little uncertain, and I'd like to get the patch into users' hands first to test (and then to NEEDSINFO once a release with the fix exists).


Viewing all articles
Browse latest Browse all 1684

Trending Articles