Commit ee0bb8c1 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

dataengines/apps: Use KIO::ApplicationLauncherJob for starting KService

While we construct a QUrl, we want to start the service and not launch a url
parent 15021b43
Pipeline #136222 passed with stage
in 6 minutes and 50 seconds
......@@ -6,7 +6,7 @@
#include "appjob.h"
#include <KIO/OpenUrlJob>
#include <KIO/ApplicationLauncherJob>
AppJob::AppJob(AppSource *source, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent)
: ServiceJob(source->objectName(), operation, parameters, parent)
......@@ -22,8 +22,7 @@ void AppJob::start()
const QString operation = operationName();
if (operation == QLatin1String("launch")) {
QString path = m_source->getApp()->entryPath();
auto job = new KIO::OpenUrlJob(QUrl(path));
auto job = new KIO::ApplicationLauncherJob(m_source->getApp());
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