在 Linux/KDE 中把 Thunderbird 封装成托盘应用
Thunderbird 是 Linux 桌面上常用的邮件客户端。默认情况下,它启动后通常显示在任务栏中;如果关闭窗口,程序也会直接退出。对于希望长期后台收邮件、但又不想让 Thunderbird 一直占用任务栏空间的用户来说,把它封装成一个“可最小化到托盘”的应用会更符合日常使用习惯。 本文记录一种相对干净的做法:不修改 Thunderbird 本体,不改 profile,不覆盖系统自带启动器,只额外创建一个通过 KDocker 启动 Thunderbird 的 desktop 文件。 基本思路 目标不是改造 Thunderbird 本身,而是在外层加一层启动方式: 这样做的好处是: 确认 Thunderbird 的二进制路径 首先确认 Thunderbird 的实际可执行文件路径: 如果返回: 说明 Thunderbird 是系统原生安装,后续可以直接使用这个路径。 这一步很重要,因为 .desktop 文件里的 Exec= 最好写清楚实际启动的程序,而不是完全依赖环境变量搜索。 不指定 Thunderbird profile Thunderbird 的 profile 通常位于用户目录下,由 Thunderbird 自己管理。虽然可以查看 profiles.ini,但这里不建议手动指定 profile。 原因是:如果系统里有多个 profile,或者 Thunderbird …