OSDN Git Service

ksmserver: reap processes started by klauncher before the window manager
authorIvailo Monev <xakepa10@gmail.com>
Wed, 28 Jun 2023 21:16:50 +0000 (00:16 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 28 Jun 2023 21:17:11 +0000 (00:17 +0300)
so that it is still running for applications that require window manager
on quit, requires the following commit from kdelibs:
4c5361d34d5f125ca7fca1f2dad505480b8a7692

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
ksmserver/server.cpp
startkde.cmake

index 1f4a275..f4d40b2 100644 (file)
@@ -688,6 +688,10 @@ void KSMServer::cleanUp()
     if (clean) return;
     clean = true;
 
+    if (klauncherSignals) {
+        klauncherSignals->call("cleanup");
+    }
+
     if (wmProcess && wmProcess->state() != QProcess::NotRunning) {
         wmProcess->kill();
         wmProcess->waitForFinished();
index 9661f92..b6f6912 100644 (file)
@@ -163,9 +163,6 @@ fi
 
 echo 'startkde: Shutting down...'  1>&2
 
-# Clean up
-kquitapp klauncher
-
 unset KDE_FULL_SESSION
 xprop -root -remove KDE_FULL_SESSION
 unset KDE_SESSION_VERSION