From e3bfb448ba9ca43a730a921ccff1bf7d76d46939 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 21 Jul 2023 02:51:44 +0300 Subject: [PATCH] kstart: replace KProcess with QProcess Signed-off-by: Ivailo Monev --- kstart/kstart.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kstart/kstart.cpp b/kstart/kstart.cpp index 1d767551..8b36e969 100644 --- a/kstart/kstart.cpp +++ b/kstart/kstart.cpp @@ -33,11 +33,12 @@ #include #include #include +#include +#include #include #include #include -#include #include #include #include @@ -83,8 +84,9 @@ KStart::KStart() //finally execute the comand if (proc) { - qint64 pid = KProcess::startDetached(exe, exeArgs); - if (pid) { + Q_PID pid = 0; + const bool started = QProcess::startDetached(exe, exeArgs, QDir::currentPath(), &pid); + if (started) { KStartupInfoData data; data.addPid(pid); data.setName(exe);