Fix race that starts kactivitymanagerd multiple times

Authored by davidedmundson on Nov 9 2017, 9:51 AM.

Description

Fix race that starts kactivitymanagerd multiple times

Summary:
During plasma startup we have multiple processes using kactivities at
once. The current code looks to see if the bus is active then launched
the executable.

If this happens at once, we end up loading, doing all the
initialisation only for all-but-one of the services to fail to register
the name
and then quit.

By using DBus activation, we get that global lock in a very safe way.

This requires a change (a .service file) on the daemon, so a fallback is
provided for 5.11 support

Test Plan:
Had just this change.
Killed kactivitymanagerd
Restarted plasmashell. It launched
Made workspace change. Had activities.

Subscribers: Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D8732

Details

Committed
davidedmundsonNov 23 2017, 11:56 AM
Differential Revision
D8732: Fix race that starts kactivitymanagerd multiple times
Parents
R6:6358aff9a407: Remove code duplication
Branches
Unknown
Tags
Unknown