fix: autostart desktop content error

always update autostart application entry

Issue: https://github.com/linuxdeepin/developer-center/issues/8261
This commit is contained in:
ck 2024-04-29 16:52:33 +08:00 committed by Comix
parent 93c0373a40
commit 9a29c0e09a

View File

@ -392,6 +392,7 @@ QHash<QSharedPointer<ApplicationService>, QString> ApplicationManager1Service::s
auto shouldLaunch = tmp.value(DesktopFileEntryKey, DesktopEntryHidden).value_or(DesktopEntry::Value{});
if (!shouldLaunch.isNull() and (shouldLaunch.toString().compare("true", Qt::CaseInsensitive) == 0)) {
app->setAutostartSource({desktopFile.sourcePath(), std::move(tmp)});
qInfo() << "shouldn't launch this autoStart item.";
continue;
}