https://bugs.kde.org/show_bug.cgi?id=489003

--- Comment #14 from Jakob Petsovits <jpe...@petsovits.com> ---
I'm going to assume that the issue is in the way that the applet [1]
initializes its values. When it is started, it sends a query to D-Bus once per
D-Bus service ("org.kde.Solid.PowerManagement",
"org.freedesktop.PowerManagement", "net.hadess.PowerProfiles") to see if the
interface is present. If the D-Bus service does not exist at initialization
time, the applet will stay empty forever.

If any of the queried interfaces isn't online yet, e.g. because plasmashell and
its wallpaper desktop area with widget were faster at starting up, then the
widget will remain empty. I think it's likely that this is what we're seeing
here.

The applet should change its code to observe when an interface gets registered
or unregistered, probably with a QDBusServiceWatcher. Once the interface is
found or disappears, update the values for use by the applet's QML.

[1]
https://invent.kde.org/plasma/powerdevil/-/blob/0f8e6dabc0623305a449a3592ed7bbdf76f5548c/applets/batterymonitor/plugin/powermanagementcontrol.cpp
(on master branch between 6.1 and 6.2)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to