Repository navigation
自动检测 ChatGPT 等打包应用注册的右键菜单 - #311
Open
CompilingError wants to merge 1 commit into
Open
CompilingError wants to merge 1 commit into
CompilingError wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
在 Windows 10 上安装 Microsoft Store 版 ChatGPT 后,资源管理器中出现的 “Open Project in ChatGPT” 无法在本程序中找到。现有打包应用菜单仅从 UwpModeItemsDic.xml 和 GuidInfosDic.ini 加载,因此未收录的新应用会被遗漏。
此修改从已注册应用的 AppxManifest.xml 读取 windows.fileExplorerContextMenus 声明,支持 desktop4/desktop5 菜单节点,验证对应的打包 COM 类存在,并按声明的 ItemType 加载到对应场景。已有字典项目优先,同一场景按 CLSID 去重;未知项目以包名和菜单内部 ID 显示,沿用现有 GUID 屏蔽、恢复和注册表导出操作。清单发现过程只读取注册表和文件,单个不可访问或损坏的包不会中断其他菜单的加载。
同时保留完整包名以定位对应版本,并支持 DllPath 为绝对路径的情况。提交仅包含三个源码文件和一个回归测试脚本。
验证:
构建后可运行: