Commit 65c61fe
committed
feat: add XdgActivation support for notifications
1. Implement ActivationToken signal in notification DBus adapters
2. Add XdgActivation token request for non-extended actions
3. Integrate activation token into dde-am execution for extended actions
4. Add isExtendedAction helper to check for deepin-specific actions
Log: Notifications now properly set XDG_ACTIVATION_TOKEN when launching
actions
Influence:
1. Verify notification action buttons trigger ActivationToken signal
2. Test extended actions (x-deepin-action-*) set XDG_ACTIVATION_TOKEN
in environment
3. Confirm non-extended actions emit ActivationToken before
ActionInvoked
4. Check token is passed to dde-am process for app launching
5. Verify backward compatibility with existing notification flows
6. Test multiple rapid notifications to ensure proper token handling
feat: 通知支持 XdgActivation 协议
1. 在通知DBus适配器中实现ActivationToken信号
2. 为非扩展操作添加XdgActivation令牌请求
3. 将激活令牌集成到扩展操作的dde-am执行中
4. 添加isExtendedAction辅助方法检查深度特定操作
Log: 通知现在在启动操作时正确设置 XDG_ACTIVATION_TOKEN
Influence:
1. 验证通知操作按钮触发ActivationToken信号
2. 测试扩展操作(x-deepin-action-*)在环境中设置XDG_ACTIVATION_TOKEN
3. 确认非扩展操作在ActionInvoked之前发出ActivationToken
4. 检查令牌是否正确传递给dde-am进程用于应用启动
5. 验证与现有通知流程的向后兼容性
6. 测试多个快速通知以确保令牌处理正确1 parent 889ea78 commit 65c61fe
4 files changed
Lines changed: 64 additions & 13 deletions
File tree
- debian
- panels/notification/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
139 | 162 | | |
140 | 163 | | |
141 | 164 | | |
| |||
542 | 565 | | |
543 | 566 | | |
544 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
545 | 578 | | |
546 | 579 | | |
547 | 580 | | |
| |||
566 | 599 | | |
567 | 600 | | |
568 | 601 | | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
576 | 623 | | |
577 | 624 | | |
578 | 625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments