Verified Commit 67560c26 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
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
parent 1295ef72
...@@ -52,7 +52,8 @@ LocationsRunner::~LocationsRunner() ...@@ -52,7 +52,8 @@ LocationsRunner::~LocationsRunner()
void LocationsRunner::match(Plasma::RunnerContext &context) void LocationsRunner::match(Plasma::RunnerContext &context)
{ {
QString term = context.query(); QString term = context.query();
if (QFileInfo(KShell::tildeExpand(term)).isExecutable()) { QFileInfo tmpInfo(KShell::tildeExpand(term));
if (tmpInfo.isFile() && tmpInfo.isExecutable()) {
return; return;
} }
// We want to expand ENV variables like $HOME to get the actual path, BUG: 358221 // 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