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.
This commit is contained in:
Vlad Zahorodnii 2022-02-10 12:07:55 +02:00
parent feffa184fb
commit 0574a7534a

View file

@ -82,6 +82,7 @@ KWinWrapper::~KWinWrapper()
{ {
wl_socket_destroy(m_socket); wl_socket_destroy(m_socket);
if (m_kwinProcess) { if (m_kwinProcess) {
disconnect(m_kwinProcess, nullptr, this, nullptr);
m_kwinProcess->terminate(); m_kwinProcess->terminate();
m_kwinProcess->waitForFinished(); m_kwinProcess->waitForFinished();
m_kwinProcess->kill(); m_kwinProcess->kill();