From 7f6445c4008bdebc881ca2dbc71c3e3c29ade943 Mon Sep 17 00:00:00 2001 From: zhangkun Date: Fri, 12 Jun 2026 17:12:24 +0800 Subject: [PATCH] fix(desktop-integration): open control center via desktop id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Replace D-Bus call to ControlCenter1 with launchByDesktopId 2. Use desktop file ID "org.deepin.dde.control-center.desktop" 3. Add qCInfo log for the open action Log: Open control center via desktop file ID instead of D-Bus call fix(desktop-integration): 通过 desktop id 打开控制中心 1. 将 D-Bus 调用 ControlCenter1 替换为 launchByDesktopId 2. 使用 desktop 文件 ID "org.deepin.dde.control-center.desktop" 3. 添加 qCInfo 日志记录打开操作 Log: 通过 desktop 文件 ID 替代 D-Bus 调用打开控制中心 PMS: BUG-365867 Change-Id: I7b8c2588391227f2c746bb0551f7ebb62c2b4ef8 --- desktopintegration.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/desktopintegration.cpp b/desktopintegration.cpp index da037b21..78946301 100644 --- a/desktopintegration.cpp +++ b/desktopintegration.cpp @@ -44,12 +44,8 @@ bool DesktopIntegration::isTreeLand() void DesktopIntegration::openSystemSettings() { - DDBusSender() - .service("org.deepin.dde.ControlCenter1") - .interface("org.deepin.dde.ControlCenter1") - .path("/org/deepin/dde/ControlCenter1") - .method(QString("Show")) - .call(); + qCInfo(logDesktopIntegration) << "Opening system settings"; + launchByDesktopId("org.deepin.dde.control-center.desktop"); } void DesktopIntegration::launchByDesktopId(const QString &desktopId)