Skip to content

Commit

Permalink
fix single quote parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
phonetic112 authored and outfoxxed committed Jan 23, 2025
1 parent 3c7dfcb commit 6a017d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/desktopentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()) {
Expand Down

0 comments on commit 6a017d6

Please sign in to comment.