From 6c75924ada8f51dcdf230ce4a59671c2b02ca54d Mon Sep 17 00:00:00 2001 From: fuleyi Date: Thu, 30 Oct 2025 14:30:28 +0800 Subject: [PATCH] fix: update notification center D-Bus interface paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the D-Bus service name and object path for the notification center widget control. The system now uses the new org.deepin.dde.shell service instead of the deprecated org.deepin.dde.Widgets service, and the notification center is accessed through the correct /org/deepin/dde/ shell/notification/center path. This change ensures compatibility with the latest DDE shell architecture where the notification center functionality has been moved from the standalone Widgets service to the integrated shell service. Influence: 1. Test notification center show/hide functionality through gesture actions 2. Verify D-Bus service availability and response times 3. Test error handling when notification center is unavailable 4. Verify the change works across different DDE shell versions 5. Test concurrent access to notification center controls fix: 更新通知中心 D-Bus 接口路径 更新了通知中心部件控制的 D-Bus 服务名称和对象路径。系统现在使用新的 org.deepin.dde.shell 服务替代已弃用的 org.deepin.dde.Widgets 服务,并通 过正确的 /org/deepin/dde/shell/notification/center 路径访问通知中心。 此更改确保与最新的 DDE shell 架构兼容,其中通知中心功能已从独立的 Widgets 服务移至集成的 shell 服务。 PMS: BUG-315125 Influence: 1. 通过手势操作测试通知中心的显示/隐藏功能 2. 验证 D-Bus 服务的可用性和响应时间 3. 测试通知中心不可用时的错误处理 4. 验证更改在不同 DDE shell 版本中的兼容性 5. 测试通知中心控制的并发访问 --- gesture1/manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gesture1/manager.go b/gesture1/manager.go index 676ddd7ab..296bde4ae 100644 --- a/gesture1/manager.go +++ b/gesture1/manager.go @@ -640,11 +640,11 @@ func (m *Manager) showWidgets(show bool) error { logger.Warning(err) return err } - obj := sessionBus.Object("org.deepin.dde.Widgets", "/org/deepin/dde/Widgets") + obj := sessionBus.Object("org.deepin.dde.shell", "/org/deepin/dde/shell/notification/center") if show { - err = obj.Call("org.deepin.dde.Widgets.Show", 0).Err + err = obj.Call("org.deepin.dde.shell.notification.center.Show", 0).Err } else { - err = obj.Call("org.deepin.dde.Widgets.Hide", 0).Err + err = obj.Call("org.deepin.dde.shell.notification.center.Hide", 0).Err } if err != nil { logger.Warning(err)