Skip to content

Linux 服务端/客户端完整支持#359

Open
JazerJu wants to merge 11 commits into
HaujetZhao:masterfrom
JazerJu:linux-support
Open

Linux 服务端/客户端完整支持#359
JazerJu wants to merge 11 commits into
HaujetZhao:masterfrom
JazerJu:linux-support

Conversation

@JazerJu

@JazerJu JazerJu commented Apr 28, 2026

Copy link
Copy Markdown

Linux 服务端/客户端完整支持

在 Ubuntu 22.04 + X11 上实现了 CapsWriter-Offline 的 Linux 完整移植。

变更摘要

  • 快捷键系统:linux_key_mapper.py + linux_shortcut_manager.py
  • 托盘图标:PySide6 QSystemTrayIcon + asyncio 事件泵
  • 中文字体修复:Tkinter 对话框中文显示
  • 构建系统:PyInstaller 半冻结 + PySide6 裁剪(571MB → 86MB)
  • 打包后 ZIP:不含托盘 116MB / 含托盘 148MB
  • 日志刷爆修复:客户端重连退避(Linux 特有问题)

测试

  • Ubuntu 22.04 X11
  • 不修改 Windows 代码,通过 __init__.py 平台路由
  • paste=True 走剪贴板上屏,无需 root

关联 Issue: #358

JazerJu and others added 11 commits April 25, 2026 18:11
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
sigma-plus pushed a commit to sigma-plus/CapsWriter-Offline that referenced this pull request May 16, 2026
从 pr359/linux-support 分支合并 Linux 跨平台支持:
- 新增 Linux 快捷键管理器 (linux_key_mapper.py, linux_shortcut_manager.py)
- 新增 Linux 托盘支持 (PySide6 QSystemTrayIcon)
- 新增 Linux 字体 fallback (toast_constants.py)
- 新增 Linux 构建脚本和依赖文件
- shortcut/__init__.py 添加平台路由
- 冲突解决:适配 core/ 路径(我们已将 util/ 重命名为 core/)
- 冲突解决:保留 master 的防御性改进(udp_control 等)
- 删除已过期的文件(core_client.py 等在 master 重构中已移除)

Co-Authored-By: JazerJu <JazerJu@users.noreply.github.com>
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.

2 participants