Skip to content

fix(linux): 修复用户安装后缺少设置菜单入口及图标的问题 - #70

Open
zhanglongqi wants to merge 1 commit into
LeonardNJU:masterfrom
zhanglongqi:fix/linux-settings-menu
Open

zhanglongqi wants to merge 1 commit into
LeonardNJU:masterfrom
zhanglongqi:fix/linux-settings-menu

Conversation

@zhanglongqi

@zhanglongqi zhanglongqi commented Sep 25, 2026 •

Copy link
Copy Markdown

源码/用户级安装没有安装设置中心的桌面入口,用户只能从终端运行 vocotype-settings。本次在用户安装和系统包的用户激活流程中安装应用菜单入口及图标,并在最后一个用户级输入法集成卸载后清理这些文件。

启动命令和图标均使用绝对路径,避免桌面会话的 PATH 不包含 ~/.local/bin 时无法启动,以及 KDE 图标主题缓存未刷新时显示空白图标。系统包打包流程同步包含共用安装脚本和所需资源。

验证情况:

  1. bash scripts/test/desktop-integration.sh 通过:在隔离的 XDG 目录中验证桌面入口格式、图标路径与内容、包含空格和特殊字符的可执行路径实际启动,以及卸载清理。
  2. 新增安装脚本和测试通过 ShellCheck;相关 Bash 语法检查及 git diff --check 通过。
  3. 已在本机 KDE 安装菜单入口,并确认 Qt 能加载配置的图标文件。
  4. 尚未构建完整发行版安装包。仓库全局检查 scripts/test/contracts.sh 因已有的受版本控制文件 scripts/test/ibus-shift-integration.py 与其「禁止 Python 源码」规则冲突而失败。

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@zhanglongqi zhanglongqi changed the title fix(linux): install settings application menu entry for user installs fix(linux): 修复用户安装后缺少设置菜单入口及图标的问题 Sep 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant