fix: 修复Intel显卡图标误显示为AMD及插件加载失败

1. CMakeLists.txt 链接 libdde-shell 库 (Dde::Shell),修复 undefined symbol:
   ds::DApplet::staticMetaObject 导致 .so 加载失败、弹框空白的问题

2. parseGpuVendorShort 用正则单词边界匹配厂商名称,修复 indexOf('ati')
   误匹配 'corporation' 中的子串导致 Intel 显卡显示 AMD 图标的问题
This commit is contained in:
2026-07-14 10:01:46 +08:00
parent f79171dbcd
commit e771a160ab
2 changed files with 9 additions and 6 deletions
+2
View File
@@ -12,6 +12,7 @@ set(CMAKE_AUTOMOC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Quick DBus LinguistTools)
find_package(Dtk6 REQUIRED COMPONENTS Core)
find_package(DDEShell REQUIRED)
# 插件 ID
set(PLUGIN_ID "org.deepin.ds.graphics-driver")
@@ -63,6 +64,7 @@ target_link_libraries(org.deepin.ds.graphics-driver PRIVATE
Qt6::Quick
Qt6::DBus
Dtk6::Core
Dde::Shell
)
# 安装到dde-shell插件目录