forked from quickshell/quickshell
fix single quote parsing
This commit is contained in:
parent
3c7dfcb220
commit
6a017d63d6
1 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ QVector<QString> DesktopEntry::parseExecString(const QString& execString) {
|
|||
|
||||
currentArgument += c;
|
||||
escape = 0;
|
||||
} else if (c == u'"') {
|
||||
} else if (c == u'"' || c == u'\'') {
|
||||
parsingString = false;
|
||||
} else {
|
||||
currentArgument += c;
|
||||
|
@ -229,7 +229,7 @@ QVector<QString> DesktopEntry::parseExecString(const QString& execString) {
|
|||
percent = false;
|
||||
} else if (c == '%') {
|
||||
percent = true;
|
||||
} else if (c == u'"') {
|
||||
} else if (c == u'"' || c == u'\'') {
|
||||
parsingString = true;
|
||||
} else if (c == u' ') {
|
||||
if (!currentArgument.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue