fix(linux): 修复用户安装后缺少设置菜单入口及图标的问题 - #70
Open
zhanglongqi wants to merge 1 commit into
Open
zhanglongqi wants to merge 1 commit into
zhanglongqi wants to merge 1 commit into
Conversation
Install the desktop launcher and icon during source installation and package activation, and remove them after the last user integration is uninstalled. Use absolute launcher and icon paths so settings remain discoverable without session PATH or icon-theme cache updates. Cover launcher escaping, icon installation, launch, and cleanup in an isolated XDG environment.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
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.
源码/用户级安装没有安装设置中心的桌面入口,用户只能从终端运行
vocotype-settings。本次在用户安装和系统包的用户激活流程中安装应用菜单入口及图标,并在最后一个用户级输入法集成卸载后清理这些文件。启动命令和图标均使用绝对路径,避免桌面会话的 PATH 不包含
~/.local/bin时无法启动,以及 KDE 图标主题缓存未刷新时显示空白图标。系统包打包流程同步包含共用安装脚本和所需资源。验证情况:
bash scripts/test/desktop-integration.sh通过:在隔离的 XDG 目录中验证桌面入口格式、图标路径与内容、包含空格和特殊字符的可执行路径实际启动,以及卸载清理。git diff --check通过。scripts/test/contracts.sh因已有的受版本控制文件scripts/test/ibus-shift-integration.py与其「禁止 Python 源码」规则冲突而失败。