Commit 62180883 authored by Alexander Lohnau's avatar Alexander Lohnau 💬 Committed by Nate Graham
Browse files

Fix condition for executable folders

If folders are marked as executable the runner will skip them
but we only want to skip files, because they are handled by
the shellrunner.

BUG: 432653
FIXED-IN: 5.21

(cherry picked from commit 67560c26)
parent 96b911eb
......@@ -52,7 +52,8 @@ LocationsRunner::~LocationsRunner()
void LocationsRunner::match(Plasma::RunnerContext &context)
QString term = context.query();
if (QFileInfo(KShell::tildeExpand(term)).isExecutable()) {
QFileInfo tmpInfo(KShell::tildeExpand(term));
if (tmpInfo.isFile() && tmpInfo.isExecutable()) {
// We want to expand ENV variables like $HOME to get the actual path, BUG: 358221
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