locations runner: Fix absolute filepath + arguments

The KUriFilter would interpret this as a path and consequently
produce a result.

BUG: 433053
FIXED-IN: 5.21
wilder-5.22
Alexander Lohnau 5 years ago
parent 06321a7b4f
commit 7e3a4231e1
  1. 3
      runners/locations/locationrunner.cpp

@ -52,7 +52,8 @@ LocationsRunner::~LocationsRunner()
void LocationsRunner::match(Plasma::RunnerContext &context)
{
QString term = context.query();
QFileInfo tmpInfo(KShell::tildeExpand(term));
// If we have a query with an executable and optionally arguments, BUG: 433053
QFileInfo tmpInfo(KShell::tildeExpand(KShell::splitArgs(term).constFirst()));
if (tmpInfo.isFile() && tmpInfo.isExecutable()) {
return;
}

Loading…
Cancel
Save