diff --git a/0001-locations-runner-Fix-absolute-filepath-arguments.patch b/0001-locations-runner-Fix-absolute-filepath-arguments.patch new file mode 100644 index 0000000..90d2a12 --- /dev/null +++ b/0001-locations-runner-Fix-absolute-filepath-arguments.patch @@ -0,0 +1,31 @@ +From 7070394fb3779032f20b8165de5b5d6b9f104b3a Mon Sep 17 00:00:00 2001 +From: Alexander Lohnau +Date: Wed, 17 Feb 2021 16:23:56 +0100 +Subject: [PATCH] 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 +--- + runners/locations/locationrunner.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/runners/locations/locationrunner.cpp b/runners/locations/locationrunner.cpp +index be1be7e6a..175c07023 100644 +--- a/runners/locations/locationrunner.cpp ++++ b/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; + } +-- +2.25.1 + diff --git a/plasma5-workspace.changes b/plasma5-workspace.changes index 48b1011..1cb6bb6 100644 --- a/plasma5-workspace.changes +++ b/plasma5-workspace.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Feb 18 11:18:08 UTC 2021 - Fabian Vogt + +- Add patch to fix starting applications with arguments from krunner + (kde#433053): + * 0001-locations-runner-Fix-absolute-filepath-arguments.patch + ------------------------------------------------------------------- Wed Feb 17 13:35:44 UTC 2021 - Fabian Vogt diff --git a/plasma5-workspace.spec b/plasma5-workspace.spec index 0743c10..ce10822 100644 --- a/plasma5-workspace.spec +++ b/plasma5-workspace.spec @@ -44,6 +44,7 @@ Source2: plasma.keyring Source3: baselibs.conf # PATCH-FIX-UPSTREAM Patch1: 0001-libkworkspace-Interim-fix-for-the-logout-issue.patch +Patch2: 0001-locations-runner-Fix-absolute-filepath-arguments.patch # PATCHES 501-??? are PATCH-FIX-OPENSUSE Patch501: 0001-Use-qdbus-qt5.patch Patch502: 0001-Ignore-default-sddm-face-icons.patch