Commit 64b5518c authored by Ahmad Samir's avatar Ahmad Samir
Browse files
parent 15b2f91e
Pipeline #156531 passed with stage
in 1 minute and 11 seconds
......@@ -11,6 +11,7 @@
#include <QCoreApplication>
#include <QMimeDatabase>
#include <QStandardPaths>
#include <QTextCodec>
#include <QTextStream>
......@@ -108,7 +109,7 @@ void KQuery::start()
m_url = m_url.adjusted(QUrl::NormalizePathSegments);
processLocate->clearProgram();
processLocate->setProgram(QStringLiteral("locate"), QStringList() << m_url.toLocalFile());
processLocate->setProgram(QStandardPaths::findExecutable(QStringLiteral("locate")), QStringList{m_url.toLocalFile()});
processLocate->setOutputChannelMode(KProcess::SeparateChannels);
processLocate->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