kstart: replace KProcess with QProcess

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-21 02:51:44 +03:00
parent 6620cf8ad6
commit e3bfb448ba

View file

@ -33,11 +33,12 @@
#include <QTimer>
#include <QDesktopWidget>
#include <QApplication>
#include <QProcess>
#include <QDir>
#include <kdebug.h>
#include <klocale.h>
#include <kcomponentdata.h>
#include <kprocess.h>
#include <kwindowsystem.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
@ -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);