fix: self start setting failed

incorrect information was set for key:  'X-Deepin-GenerateSource'

Issue: https://github.com/linuxdeepin/developer-center/issues/7637
This commit is contained in:
zhangkun 2024-04-15 15:41:40 +08:00 committed by deepin-bot[bot]
parent 8851263925
commit 064a8dda75

View File

@ -669,7 +669,7 @@ void ApplicationService::setAutoStart(bool autostart) noexcept
newEntry = *m_entry;
}
newEntry.insert(DesktopFileEntryKey, X_Deepin_GenerateSource, m_autostartSource.m_filePath);
newEntry.insert(DesktopFileEntryKey, X_Deepin_GenerateSource, m_desktopSource.sourcePath());
newEntry.insert(DesktopFileEntryKey, DesktopEntryHidden, !autostart);
setAutostartSource({fileName, newEntry});