From 0574a7534a1e5ed21fbbb868853a3d85b00f7ab8 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 10 Feb 2022 12:07:55 +0200 Subject: [PATCH] wayland: Make the launcher not restart kwin_wayland if it crashes at shutdown Currently, if kwin_wayland crashes at shutdown, the launcher can potentially spawn it again. This change addresses that issue by making the wrapper ignore the QProcess::finished() signal. --- src/helpers/wayland_wrapper/kwin_wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/wayland_wrapper/kwin_wrapper.cpp b/src/helpers/wayland_wrapper/kwin_wrapper.cpp index 74778e8258..74de94d786 100644 --- a/src/helpers/wayland_wrapper/kwin_wrapper.cpp +++ b/src/helpers/wayland_wrapper/kwin_wrapper.cpp @@ -82,6 +82,7 @@ KWinWrapper::~KWinWrapper() { wl_socket_destroy(m_socket); if (m_kwinProcess) { + disconnect(m_kwinProcess, nullptr, this, nullptr); m_kwinProcess->terminate(); m_kwinProcess->waitForFinished(); m_kwinProcess->kill();