mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kstart: replace KProcess with QProcess
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6620cf8ad6
commit
e3bfb448ba
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue