fix: change gnome-keyring-daemon startup order#191
Conversation
Changed the startup sequence to launch gnome-keyring-daemon before deepin-keyring-whitebox. This prevents potential issues where the keyring's pkcs11 module might not be fully loaded when attempting to unlock, ensuring proper initialization of all keyring components. Influence: 1. Test system startup and login process 2. Verify keyring functionality works correctly 3. Check that pkcs11 module is properly loaded 4. Test application access to keyring services 5. Verify no race conditions during session initialization fix: 调整 gnome-keyring-daemon 启动顺序 修改启动顺序,先启动 gnome-keyring-daemon 再启动 deepin-keyring- whitebox。这可以防止在尝试解锁时 keyring 的 pkcs11 模块可能尚未完全加载 的问题,确保所有 keyring 组件正确初始化。 PMS: BUG-350091 Influence: 1. 测试系统启动和登录过程 2. 验证 keyring 功能正常工作 3. 检查 pkcs11 模块是否正确加载 4. 测试应用程序对 keyring 服务的访问 5. 验证会话初始化期间没有竞态条件
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdjusts the X session startup script so that gnome-keyring-daemon is started before deepin-keyring-whitebox, avoiding races where the keyring’s PKCS#11 module is not yet loaded when deepin-keyring-whitebox runs. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码的 diff 展示了对 Deepin 桌面环境(DDE)会话启动脚本 以下是对该 diff 的详细审查意见,包括语法逻辑、代码质量、代码性能和代码安全方面: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
改进建议基于以上分析,以下是优化后的代码建议: #!/bin/sh
# Start deepin-keyring-whitebox and gnome-keyring-daemon for DDE session
# 定义一个日志函数(可选,用于减少标准输出干扰)
log_msg() {
# 如果需要调试,可以取消下面的注释
# echo "$@"
:
}
# 启动 gnome-keyring-daemon
if [ -x /usr/bin/gnome-keyring-daemon ]; then
log_msg "start gnome-keyring-daemon with components secrets,pkcs11,ssh"
# 移除 || true 可以让启动失败更明显,或者可以记录错误
/usr/bin/gnome-keyring-daemon --start --components=secrets,pkcs11,ssh
fi
# 启动 deepin-keyring-whitebox
if [ -x /usr/bin/deepin-keyring-whitebox ]; then
log_msg "start deepin-keyring-whitebox client"
/usr/bin/deepin-keyring-whitebox --opt-client=waitfifonotify
fi总结: |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fly602, yixinshark 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 |
Changed the startup sequence to launch gnome-keyring-daemon before deepin-keyring-whitebox. This prevents potential issues where the keyring's pkcs11 module might not be fully loaded when attempting to unlock, ensuring proper initialization of all keyring components.
Influence:
fix: 调整 gnome-keyring-daemon 启动顺序
修改启动顺序,先启动 gnome-keyring-daemon 再启动 deepin-keyring- whitebox。这可以防止在尝试解锁时 keyring 的 pkcs11 模块可能尚未完全加载
的问题,确保所有 keyring 组件正确初始化。
PMS: BUG-350091
Influence:
Summary by Sourcery
Bug Fixes: