Version: enterprise (using Devel)
OS: MS Windows
When starting Kontact on Windows before akonadi was started sometimes there is only a window shown like a Kontact without any plugins.
Reproducible: Didn't try
Steps to Reproduce:
1) Have everything deleted, have a slow system
2) Start Kontact without starting akonadi first
I've seen this occur mainly on slow systems during the initial start.
The problem is a missing ksycoca database, since kbuildsycoca4 places the database into the users directory Kontact should wait until the database is generated.
Created attachment 59096 [details]
Picture of Kontact without sycoca
SVN commit 1229531 by aheinecke:
Add a patch to avoid a race condition during the first
startup of Kontact.
This Patch is added first to emerge for testing and not
yet in kdepim git.
M +2 -1 kdepim-e5-20110117.py
WebSVN link: http://websvn.kde.org/?view=rev&revision=1229531
Git commit f99de48495add01200a0434d99b080318eedb254 by Andre Heinecke.
Committed on 18/05/2011 at 18:52.
Pushed by aheinecke into branch 'master'.
Add a blocking waitForKSycoca function
When Kontact is started on a system where no kded was ever
started before there is a race condition between kontact querying
the KSycoca database and the creation of that database.
This caused Kontact not load any plugins in that case.
This Patch causes Kontact to block for up to 10 seconds while
waiting for KSycoca to become available.
M +29 -0 kontact/src/mainwindow.cpp
M +1 -0 kontact/src/mainwindow.h