Yet some more info... even though I remove all problematic resources (and thus making akonadi stop without any delays), logging out from KDE still takes a long time.
This turns out to be akonadi not being shutdown automatically when logging out. Instead, ksmserver waits until it hits it's timeout, which I believe is 10s, before continuing shutting down KDE.
It shutdowns fast again if I manually stop akonadi before logging out. But this (including scripting and adding shortcuts to the desktop or similar) is only a temporary workaround.
Note that adding a script to $HOME/.kde/shutdown doesn't help, since those scripts are executed *after* logging out from KDE, while akonadi needs to be stopped *before*.
Yet some more info... even though I remove all problematic resources (and thus making akonadi stop without any delays), logging out from KDE still takes a long time.
This turns out to be akonadi not being shutdown automatically when logging out. Instead, ksmserver waits until it hits it's timeout, which I believe is 10s, before continuing shutting down KDE.
It shutdowns fast again if I manually stop akonadi before logging out. But this (including scripting and adding shortcuts to the desktop or similar) is only a temporary workaround.
Note that adding a script to $HOME/.kde/shutdown doesn't help, since those scripts are executed *after* logging out from KDE, while akonadi needs to be stopped *before*.