Conversation
1w1w11w1
force-pushed
the
codex/preserve-desktop-shortcut-choice
branch
from
August 20, 2026 14:02
5506d4c to
3477423
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
应用成功启动后,PyAppify 会调用
update_app_shortcuts。当前实现用桌面应用快捷方式是否存在作为总开关:这会导致用户删除桌面启动器快捷方式后,只要桌面应用快捷方式仍存在,下一次启动或更新就把启动器快捷方式恢复。
修复
让两个桌面快捷方式分别遵循“存在才更新”:
开始菜单快捷方式行为保持不变。用户删除桌面快捷方式后,后续启动不会再恢复;用户手动创建的快捷方式仍可被后续启动维护。
验证
新增回归测试覆盖:
本地环境未安装 Rust 工具链,未能执行 Cargo 测试;已通过
git diff --check,请由 CI 完成编译和测试验证。