惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
The GitHub Blog
The GitHub Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
量子位
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
T
Tailwind CSS Blog
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
M
MIT News - Artificial intelligence

251 的魔法实验室

通过 Ansible 给各个 Server 做自动化升级 我的 2025 离线更新 Home Assistant 2025.02 日本游记 Vol. 2 JetKVM 初上手体验 2025.02 日本游记 Vol. 1 记从 Windows 启动 Linux 的心得 我的 2024 我的 5.10.1 代 homelab
Fedora 41 下面安装 fcitx5 w/ RIME
251 的魔法实验室 · 2024-11-27 · via 251 的魔法实验室

每次都要折腾,这次记录一下。

0x01 安装 fcitx5

sudo dnf install fcitx5 fcitx5-qt fcitx5-chinese-addons fcitx5-lua fcitx5-configtool fcitx5-gtk

因为 Fedora 41 已经默认 Wayland,根据Fcitx 官方文档,Wayland 桌面环境下不能设置 GTK_IM_MODULEQT_IM_MODULE,只能设置 XMODIFIERS=@im=fcitx。这里先不设置,我们后面设置。

但如果你为了让 fcitx5 随系统启动而安装了 fcitx5-autostart 的话,那它会自动设置那两个参数,虽然能够在 Firefox、GIMP、gedit 等 GTK 软件下输入中文,但是无法在任何 QT 程序下输入中文。所以,不要安装 fcitx5-autostart

0x02 安装 rime

sudo dnf install fcitx5-rime

我之前虽然有配置文件,但懒得导入了,直接使用雾凇拼音吧。

rime_frontend=fcitx5-rime bash rime-install iDvel/rime-ice:others/recipes/full

最后,去设置 /etc/profile 环境以下参数,重启之后大功告成:

export XMODIFIERS=@im=fcitx
export QT_IM_MODULES="wayland;fcitx;ibus"

0x03 参考资料


如果喜欢本文,欢迎点击下方的「鼓掌」按钮!

如果上面没有加载出任何东西,可以点击这里