Commit 312aa47
committed
feat: improve the logic of obtaining icons
1. Added support for fetching icons from ApplicationManager DBus
interface
2. Special handling for Linglong containerized apps where executable
path isn't accessible
3. Added fallback to default icon when theme icon not available
4. Implemented DBus communication to get app icons from desktop entry
5. Added necessary header includes and DBus constants
The changes were necessary because:
1. Linglong apps run in containers making their executable paths
inaccessible
2. Previous implementation couldn't properly display icons for
containerized apps
3. New solution uses ApplicationManager DBus interface as reliable icon
source
4. Maintains backward compatibility with regular applications
feat: 改进玲珑应用的图标处理
1. 添加从ApplicationManager DBus接口获取图标支持
2. 对玲珑容器化应用特殊处理,其可执行路径无法访问
3. 添加主题图标不可用时的默认图标回退机制
4. 实现通过DBus从桌面条目获取应用图标
5. 添加必要的头文件包含和DBus常量
修改原因:
1. 玲珑应用运行在容器中导致其可执行路径无法访问
2. 原实现无法正确显示容器化应用的图标
3. 新方案使用ApplicationManager DBus接口作为可靠图标来源
4. 保持对常规应用的向后兼容性
pms: BUG-315995
pms: BUG-2817651 parent e10e61a commit 312aa47
1 file changed
+29
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
98 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
99 | 125 | | |
100 | 126 | | |
101 | 127 | | |
| |||
0 commit comments