feat: move dde-session-shell.conf to /var/lib/dde-session-shell for V25#74
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideConditionally relocate dde-session-shell.conf from /usr/share/dde-session-shell to /var/lib/dde-session-shell for V25 builds, and make the runtime config lookup respect that conditional path while keeping V20 behavior unchanged. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The build option name (DDE_SESSION_SHELL_SNIPE) and the C/C++ macro (ENABLE_DSS_SNIPE) differ; consider aligning them or clearly wiring them together in CMake to avoid configuration drift or confusion.
- The path to dde-session-shell.conf is now hardcoded in both CMakeLists.txt and constants.h; consider centralizing this path in a single configuration mechanism to reduce the chance of future mismatches between install location and runtime lookup.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The build option name (DDE_SESSION_SHELL_SNIPE) and the C/C++ macro (ENABLE_DSS_SNIPE) differ; consider aligning them or clearly wiring them together in CMake to avoid configuration drift or confusion.
- The path to dde-session-shell.conf is now hardcoded in both CMakeLists.txt and constants.h; consider centralizing this path in a single configuration mechanism to reduce the chance of future mismatches between install location and runtime lookup.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
将 dde-session-shell.conf 从 /usr/share/dde-session-shell 迁移到 /var/lib/dde-session-shell。 仅对 ENABLE_DSS_SNIPE (V25) 生效,V20 保持原有 /usr/share/dde-session-shell 路径不变。 通过条件编译区分:CMakeLists.txt 使用 if(DDE_SESSION_SHELL_SNIPE), constants.h 使用 #ifdef ENABLE_DSS_SNIPE。 Log: 将 dde-session-shell.conf 迁移到 /var/lib/dde-session-shell (仅 V25) PMS: BUG-356947
07557c1 to
bec3cdf
Compare
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#74
deepin pr auto review★ 总体评分:95分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 # CMakeLists.txt 中确保变量与宏联动
if (DDE_SESSION_SHELL_SNIPE)
install(FILES files/dde-session-shell.conf DESTINATION /var/lib/dde-session-shell/)
add_compile_definitions(ENABLE_DSS_SNIPE)
else()
install(FILES files/dde-session-shell.conf DESTINATION ${CMAKE_INSTALL_DATADIR}/dde-session-shell/)
endif() |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602, Ivy233 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#74
将 dde-session-shell.conf 从 /usr/share/dde-session-shell 迁移到 /var/lib/dde-session-shell。 仅对 ENABLE_DSS_SNIPE (V25) 生效,V20 保持原有 /usr/share/dde-session-shell 路径不变。 通过条件编译区分:CMakeLists.txt 使用 if(DDE_SESSION_SHELL_SNIPE), constants.h 使用 #ifdef ENABLE_DSS_SNIPE。
Log: 将 dde-session-shell.conf 迁移到 /var/lib/dde-session-shell (仅 V25)
PMS: BUG-356947
Summary by Sourcery
Move dde-session-shell.conf to /var/lib/dde-session-shell when DSS snipe is enabled while keeping the existing path otherwise, and align configuration lookup comments with the new conditional paths.
Enhancements: