fix: correct autostart source

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe 2024-01-19 12:18:47 +08:00 committed by Comix
parent 95019a38f4
commit 6f2da75d7a

View File

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