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

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()) {
// 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);
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