Repository navigation
fix(terminal): support Linux system terminal launchers - #9987
Merged
farion1231 merged 1 commit intoNov 26, 2026
Merged
Conversation
Owner
|
已合并,感谢您的贡献!把 |
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.
Human Note / 本人说明
我发现我的 Linux 环境中有
/usr/bin/x-terminal-emulator和/usr/bin/xdg-terminal-exec,但 CC Switch 的终端列表没有尝试它们。这个 PR 把这两个系统入口加入 Linux 终端回退列表,并让“打开终端”和运行脚本的入口共用同一列表。I found
/usr/bin/x-terminal-emulatorand/usr/bin/xdg-terminal-execin my Linux environment, but CC Switch did not try them. This PR adds both system launchers to the Linux fallback list and shares the same list between the provider terminal and script-launch paths.Summary / 概述
x-terminal-emulator -eandxdg-terminal-exec --to the Linux fallback candidates.Related Issue / 关联 Issue
Fixes #9986
Screenshots / 截图
Not applicable.
Checklist / 检查清单
pnpm typecheckpasses / 通过 TypeScript 类型检查pnpm format:checkpasses / 通过代码格式检查cargo fmt --checkpasses / 通过 Rust 格式检查cargo clippy --all-targets -- -D warningspasses / 通过 Clippy 检查cargo test --lib commands::terminal_launch::testspasses / 终端启动模块单测通过