From a04fded63ac36e707631a5f61b681eb924f3d148 Mon Sep 17 00:00:00 2001 From: zhaoyingzhen Date: Thu, 12 Mar 2026 16:27:03 +0800 Subject: [PATCH] fix: modify update notification's appName and appIcon modify update notification's appName and appIcon to org.deepin.dde.control-center Log: modify update notification's appName and appIcon Pms: BUG-351745 --- src/dde-lock/updateworker.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dde-lock/updateworker.cpp b/src/dde-lock/updateworker.cpp index 536be5c8..bf2c6d3d 100644 --- a/src/dde-lock/updateworker.cpp +++ b/src/dde-lock/updateworker.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -32,9 +32,15 @@ void UpdateWorker::doUpdate(bool powerOff) .path("/org/freedesktop/Notifications") .interface("org.freedesktop.Notifications") .method(QString("Notify")) +#ifndef ENABLE_DSS_SNIPE .arg(tr("Update")) .arg(static_cast(0)) .arg(QString("package-updated-failed")) +#else + .arg(QString("org.deepin.dde.control-center")) + .arg(static_cast(0)) + .arg(QString()) +#endif .arg(QString("")) .arg(tr("Please plug in and then install updates.")) .arg(QStringList())