Repository navigation
feat: add browse and keyword lookup for Application paths - #5
Merged
Merged
Conversation
应用步骤的程序路径现在支持三种设置方式:直接输入绝对路径、通过文件对话框浏览选择,以及点击“查找”按关键词在本机定位程序(例如输入 steam)。 查找是显式操作,不会在每次按键时改写路径。它只检索注册表 App Paths / 卸载项、开始菜单与桌面快捷方式、常见安装目录和 Steam 等已知布局,不会递归扫描整个磁盘。唯一匹配会写入已有绝对路径;多个匹配由用户选择;找不到或非 Windows 时给出明确提示。Professional 与 Basic 共用该能力,Basic 仍只接受本地 .exe / .lnk。方案字段不引入新的路径 schema。 ## English Summary Application steps now accept a typed absolute path, a file-dialog browse action, and an explicit keyword lookup (for example `steam`). Lookup is Windows-scoped and read-only, stores a real absolute path, and asks the user to choose when multiple matches remain.
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.
改动 / What changed
应用步骤的「程序路径」现在支持三种设置方式,Professional 与 Basic 共用同一套工作台控件:
.exe / .bat / .cmd / .ps1 / .lnk,Basic 仍为本地.exe / .lnk)。「+ 应用」继续走同一套文件选择。steam)后点击「查找」。这是显式操作,不会在每次按键时改写路径。查找只在 Windows 上进行,只读检索注册表 App Paths / 卸载项、开始菜单与桌面快捷方式、常见安装目录,以及 Steam 等已知布局;不会递归扫描整个磁盘,也不会访问网络或写入真实 Professional 数据目录。唯一匹配会把已有绝对路径写入方案字段;多个匹配弹出选择列表,由用户挑选;找不到、路径不受当前版本支持或非 Windows 时给出明确提示。方案不引入新的路径 schema。未改变 Basic 的能力约定(仍然没有 Command / Wait / 激活)。
检查 / How it was checked
在指定 Miniconda 解释器(Python 3.13.9,PySide6 6.9.3)下运行:
tools/check_application_lookup_smoke.py:空关键词、非 Windows、已存在/缺失绝对路径、Steam 布局唯一命中并排除 helper、未找到、多匹配、快捷方式与 App Paths 去重、Basic 后缀过滤、不遍历整个磁盘。tools/check_application_path_picker_smoke.py:Professional / Basic 共用控件、输入不触发查找、浏览写入路径、唯一查找填充绝对路径、未找到明确报错、多匹配选择与取消。使用隔离的LAUNCHFLOW_DATA_DIR和 offscreen Qt,不读取真实许可证。check_dual_edition_phase2_smoke.py、check_step_editor_sync_smoke.py、check_application_backend_smoke.py、check_editor_gui_smoke.py、check_readme_docs_smoke.py、check_platform_coupling_smoke.py(new=0,new_core=0,stale_baseline=0)。平台耦合基线仅增补本次查找模块与更新后的路径占位文案,未改写既有条目的 reason / future_target。未发布新的公开 Basic 安装包或新的 Beta;最近公开检查点仍是
v0.1.0-beta.2。README 工作台截图尚未重拍:生成脚本在这台 Windows 机器上会拉起真实窗口并卡住,已终止,现有截图可能仍显示旧的路径栏。English Summary
Application steps now accept a typed absolute path, a file-dialog browse action, and an explicit keyword lookup (for example
steam). Lookup is Windows-scoped and read-only: it searches registry App Paths and uninstall keys, Start Menu / desktop shortcuts, common install directories, and well-known layouts such as Steam, without walking the whole drive. A unique hit stores a real absolute path; multiple hits are shown for the user to pick; misses fail clearly. The same UI is shared by Professional and Basic; Basic still only accepts local.exe/.lnk, and the edition capability contract is unchanged.