Commit ff46d9fd 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


(cherry picked from commit ee0bb8c1)
parent d208c478
Pipeline #136223 passed with stage
in 8 minutes and 43 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());
job->start();
setResult(true);
return;
......
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