feat: set systemd.unit's property CollectMode to failed-or-inactive

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2024-03-05 17:49:24 +08:00
committed by Comix
parent f740818e8a
commit 34c995d992
2 changed files with 8 additions and 3 deletions

View File

@ -302,7 +302,7 @@ ApplicationService::Launch(const QString &action, const QStringList &fields, con
auto objectPath = m_applicationPath.path() + "/" + instanceRandomUUID;
auto newCommands = commands;
newCommands.push_front(QString{"--SourcePath=%1"}.arg(m_desktopSource.sourcePath()));
newCommands.push_front(QString{"--SourcePath=%1"}.arg(m_desktopSource.sourcePath()));
auto location = newCommands.indexOf(R"(%f)");
if (location != -1) { // due to std::move, there only remove once
newCommands.remove(location);