Commit 999d699b authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KToolInvocation

parent f561a648
Pipeline #204688 passed with stage
in 24 minutes and 14 seconds
......@@ -18,5 +18,5 @@ target_link_libraries(KDevelopSessionsWatch
PUBLIC
Qt5::Core
PRIVATE
KF5::Service
KF5::KIOGui
)
......@@ -9,7 +9,7 @@
// lib
#include "sessionfilestracker.h"
// KF
#include <KToolInvocation>
#include <KIO/CommandLauncherJob>
namespace KDevelopSessionsWatch {
......@@ -29,7 +29,9 @@ void openSession(const QString& sessionId)
QStringLiteral("--open-session"),
sessionId,
};
KToolInvocation::kdeinitExec(QStringLiteral("kdevelop"), args);
auto *job = new KIO::CommandLauncherJob(QStringLiteral("kdevelop"), args);
job->setDesktopName(QStringLiteral("org.kde.kdevelop"));
job->start();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment