Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
8b6ad495
Commit
8b6ad495
authored
Feb 22, 2021
by
Alexander Lohnau
💬
Browse files
locations runner: Fix empty list on invalid shell quotes
parent
ec751bf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
runners/locations/locationrunner.cpp
View file @
8b6ad495
...
...
@@ -53,9 +53,12 @@ void LocationsRunner::match(Plasma::RunnerContext &context)
{
QString
term
=
context
.
query
();
// 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
;
const
QStringList
split
=
KShell
::
splitArgs
(
term
);
if
(
!
split
.
isEmpty
())
{
QFileInfo
tmpInfo
(
KShell
::
tildeExpand
(
split
.
constFirst
()));
if
(
tmpInfo
.
isFile
()
&&
tmpInfo
.
isExecutable
())
{
return
;
}
}
// We want to expand ENV variables like $HOME to get the actual path, BUG: 358221
KUriFilter
::
self
()
->
filterUri
(
term
,
{
QStringLiteral
(
"kshorturifilter"
)});
...
...
Alexander Lohnau
💬
@alex
mentioned in commit
6c759a80
·
Feb 26, 2021
mentioned in commit
6c759a80
mentioned in commit 6c759a80506a3cfe0aba2b040d99d571894fecba
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment