feat: add --disable-xdp flag to disable xdp integration#1652
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for enabling or disabling XDG Desktop Portal (XDP) integration within the sandbox. Changes include updates to the API schema, CLI flags, and runtime configuration to support a new disable_xdp option. The implementation fetches the XDP document mount point via DBus and configures the OCI container with appropriate mounts and environment variables when XDP is active. Feedback was provided regarding an incorrect use of std::move on a raw pointer during path construction.
Add xdp document support Signed-off-by: reddevillg <reddevillg@gmail.com>
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
deepin pr auto review这份代码 diff 主要实现了一个新功能:允许用户通过命令行参数或运行时配置来禁用 XDG Desktop Portal (XDP) 集成。以下是针对语法逻辑、代码质量、性能和安全的审查意见: 1. 语法逻辑优点:
改进建议:
2. 代码质量优点:
改进建议:
3. 代码性能优点:
改进建议:
4. 代码安全优点:
改进建议:
总结整体代码质量很高,实现逻辑清晰,测试覆盖充分。主要改进点集中在:
代码可以合并,但建议在合并前确认上述几点。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dengbo11, reddevillg 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 |
Add xdp document support