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

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-activities/-/comm |ma/plasma-activities/-/comm
                   |it/9ac4e1db21f8ef1647023c24 |it/a92e3199ac201fdb16ced9ce
                   |d91ac334d19b9b17            |384e6960b555e379

--- Comment #30 from David Edmundson <k...@davidedmundson.co.uk> ---
Git commit a92e3199ac201fdb16ced9ce384e6960b555e379 by David Edmundson, on
behalf of David Edmundson.
Committed on 28/09/2024 at 08:03.
Pushed by davidedmundson into branch 'Plasma/6.2'.

Avoid reporting serviceStatus of NotRunning whilst kamd is loading

Consumer::ServiceStatus is tri-state.
NotRunning, Unknown (loading), Running.

The backend was a simple boolean whether the service was up or not.
The library had code to try and start kactivitymanagerd on boot, or wait
until it is booted. However, this was not reflected in the service
status.

This leads to a race on plasma boot where the service status is reported
as "NotRunning" during initial startup.

A new enum is used as it's not a 1:1 match with Consumer::ServiceStatus,
when the backend is up, an async request of the activities is performed
and then the consumer is declared ready.


(cherry picked from commit 9ac4e1db21f8ef1647023c24d91ac334d19b9b17)

Co-authored-by: David Edmundson <k...@davidedmundson.co.uk>

M  +18   -13   src/lib/activitiescache_p.cpp
M  +2    -1    src/lib/activitiescache_p.h
M  +27   -14   src/lib/manager_p.cpp
M  +9    -2    src/lib/manager_p.h

https://invent.kde.org/plasma/plasma-activities/-/commit/a92e3199ac201fdb16ced9ce384e6960b555e379

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

Reply via email to