Avoid KWin starting kactivitymanagerd synchronously

Prevent KWin from synchronously autostarting kactivitymanagerd. Indeed,
kactivitymanagerd being a QApplication it will depend on KWin
startup... this is unsatisfactory dependency wise, and it turns out
that it leads to a deadlock in the Wayland case
This commit is contained in:
Kevin Ottens 2021-03-10 11:53:04 +01:00 committed by Aleix Pol Gonzalez
parent a406eef9a0
commit 0ab41802f4

View file

@ -128,6 +128,12 @@ bool Application::shouldUseWaylandForCompositing() const
void Application::start() void Application::start()
{ {
// Prevent KWin from synchronously autostarting kactivitymanagerd
// Indeed, kactivitymanagerd being a QApplication it will depend
// on KWin startup... this is unsatisfactory dependency wise,
// and it turns out that it leads to a deadlock in the Wayland case
setProperty("org.kde.KActivities.core.disableAutostart", true);
setQuitOnLastWindowClosed(false); setQuitOnLastWindowClosed(false);
if (!m_config) { if (!m_config) {