From ff46d9fd0efac8e0af7f558da553a2cb76e70cd2 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 11 Feb 2022 18:44:04 +0100 Subject: [PATCH] dataengines/apps: Use KIO::ApplicationLauncherJob for starting KService While we construct a QUrl, we want to start the service and not launch a url (cherry picked from commit ee0bb8c103814b1f31dd5a52837254f992134736) --- dataengines/apps/appjob.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dataengines/apps/appjob.cpp b/dataengines/apps/appjob.cpp index 8618434d1..9ab78387e 100644 --- a/dataengines/apps/appjob.cpp +++ b/dataengines/apps/appjob.cpp @@ -6,7 +6,7 @@ #include "appjob.h" -#include +#include AppJob::AppJob(AppSource *source, const QString &operation, QMap ¶meters, 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()); job->start(); setResult(true); return;