Commit 09dd4a3
committed
feat: adapt restart calls for Wayland via dde-session
Switched reboot, update-and-reboot, and update-and-shutdown operations
to use the SessionManager1 D-Bus interface under Wayland, while keeping
the existing ShutdownFront1 path for X11. This is needed because the old
shutdown frontend does not work correctly on Wayland compositors, where
session management must go through dde-session's dedicated API.
Log: Changed restart and shutdown methods to use SessionManager1 D-Bus
interface on Wayland
Influence:
1. Test system restart on X11 (verify Restart is called via
ShutdownFront1)
2. Test system restart on Wayland (verify RequestReboot is called via
SessionManager1)
3. Test Update & Reboot on both platforms
4. Test Update & Shutdown on both platforms
5. Verify no regression for existing X11 shutdown frontend flows
6. Check error handling when SessionManager1 service is unavailable
feat: 在Wayland下重启服务改为调用dde-session接口
将重启、更新并重启、更新并关机等操作在Wayland环境下切换为使用
SessionManager1 D-Bus接口,X11下保持原有的ShutdownFront1调用。原因是旧的
关机前端在Wayland合成器上无法正常工作,需要通过dde-session的专用API进行
会话管理。
Log: 在Wayland环境下将重启和关机方法切换为使用SessionManager1 D-Bus接口
Influence:
1. 在X11下测试系统重启(验证通过ShutdownFront1调用Restart)
2. 在Wayland下测试系统重启(验证通过SessionManager1调用RequestReboot)
3. 在两个平台下测试“更新并重启”功能
4. 在两个平台下测试“更新并关机”功能
5. 验证现有X11关机前端流程无回归
6. 测试SessionManager1服务不可用时的错误处理
PMS: BUG-345663
Change-Id: I73c8449b6a96bdf00dc36510ceb8ecd7ffabb04f1 parent 4bc6a55 commit 09dd4a3
4 files changed
Lines changed: 42 additions & 12 deletions
File tree
- src
- common
- dbus
- dock-update-plugin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
553 | 556 | | |
554 | 557 | | |
555 | 558 | | |
556 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
560 | 567 | | |
561 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
562 | 573 | | |
563 | 574 | | |
564 | 575 | | |
565 | 576 | | |
566 | | - | |
567 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
198 | 207 | | |
199 | 208 | | |
200 | 209 | | |
| |||
0 commit comments