Commit fe646dc7 authored by Alexander Lohnau's avatar Alexander Lohnau 💬

Do not duplicate results with ShellRunner

parent 89786024
......@@ -53,6 +53,9 @@ LocationsRunner::~LocationsRunner()
void LocationsRunner::match(Plasma::RunnerContext &context)
{
QString term = context.query();
if (QFileInfo(KShell::tildeExpand(term)).isExecutable()) {
return;
}
// We want to expand ENV variables like $HOME to get the actual path, BUG: 358221
KUriFilter::self()->filterUri(term, {QStringLiteral("kshorturifilter")});
const QUrl url(term);
......
Markdown is supported
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