From 064a8dda75609606d04894a4902adc1611acb0a9 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Mon, 15 Apr 2024 15:41:40 +0800 Subject: [PATCH] fix: self start setting failed incorrect information was set for key: 'X-Deepin-GenerateSource' Issue: https://github.com/linuxdeepin/developer-center/issues/7637 --- src/dbus/applicationservice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbus/applicationservice.cpp b/src/dbus/applicationservice.cpp index 85dde13..88f5e60 100644 --- a/src/dbus/applicationservice.cpp +++ b/src/dbus/applicationservice.cpp @@ -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});