D8732: Fix race that starts kactivitymanagerd multiple times

David Edmundson noreply at phabricator.kde.org
Thu Nov 9 09:54:37 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION 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.

REPOSITORY
  R6 KActivities

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D8732

AFFECTED FILES
  src/lib/manager_p.cpp

To: davidedmundson
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171109/7f1332a1/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list