fix: incorrect behavior when parse and launch

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-08-25 18:21:11 +08:00
committed by Comix
parent 3988e0c526
commit ce2148e5cd
4 changed files with 17 additions and 8 deletions

View File

@ -377,6 +377,7 @@ LaunchTask ApplicationService::unescapeExec(const QString &str, const QStringLis
auto matcher = re.match(str);
if (!matcher.hasMatch()) {
task.command.append(std::move(execList));
task.Resources.emplace_back(QString{""}); // mapReduce should run once at least
return task;
}