我刚在我的设备上安装了 Plasma 桌面环境和 fcitx5-rime。
但是,我就是没法让它正常工作。
我已经把虚拟键盘设置成了 Fcitx 5 的 Wayland 启动器。
我的 fcitx5-diagnose 如下:
# 系统信息:
1. `uname -a`:
Linux wonderland 7.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 21 Sep 2026 18:51:14 +0000 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: n/a
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a
3. `lsb_release -d`:
Description: Arch Linux
4. `/etc/lsb-release`:
DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
5. `/etc/os-release`:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
6. 桌面环境:
桌面环境为 `kde`。
7. XDG 会话类型:
XDG_SESSION_TYPE='wayland'
8. Bash 版本:
BASH_VERSION='5.3.20(1)-release'
# 环境:
1. DISPLAY:
DISPLAY=':0'
WAYLAND_DISPLAY='wayland-0'
2. 键盘布局:
1. `setxkbmap`:
WARNING: Running setxkbmap against an Xwayland server
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+inet(evdev)" };
xkb_geometry { include "pc(pc105)" };
};
2. `xprop`:
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
3. Locale:
1. 全部可用 locale:
C
C.utf8
en_US.utf8
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
POSIX
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8
zh_TW
zh_TW.big5
zh_TW.euctw
zh_TW.utf8
2. 当前 locale:
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC=zh_CN.UTF-8
LC_TIME=zh_CN.UTF-8
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY=zh_CN.UTF-8
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER=zh_CN.UTF-8
LC_NAME=zh_CN.UTF-8
LC_ADDRESS=zh_CN.UTF-8
LC_TELEPHONE=zh_CN.UTF-8
LC_MEASUREMENT=zh_CN.UTF-8
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
4. 目录:
1. 主目录:
/home/alice
2. `${XDG_CONFIG_HOME}`:
环境变量 `XDG_CONFIG_HOME` 没有设定。
`XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/home/alice/.config`)。
3. Fcitx5 设置目录:
当前 fcitx5 设置目录是 `~/.config/fcitx5` (`/home/alice/.config/fcitx5`)。
5. 当前用户:
脚本作为 alice (1000) 运行。
# Fcitx 状态:
1. 可执行文件:
在 `/usr/bin/fcitx5` 找到了 fcitx5。
2. 版本:
Fcitx 版本: `5.1.23`
3. 进程:
找到了 2 个 fcitx5 进程:
9699 fcitx5-wayland-
9700 fcitx5
4. `fcitx5-remote`:
`fcitx5-remote` 工作正常。
5. DBus 界面:
使用 `dbus-send` 来检查 dbus。
DBus 名称 `org.fcitx.Fcitx5` 的所有者是 `:1.109`。
DBus 名称 `org.fcitx.Fcitx5` 的 PID 所有者是 `9700`。
来自 dbus 的调试信息:
Group [x11::0] has 0 InputContext(s)
Group [wayland:] has 10 InputContext(s)
IC [fbbaab0ecfae4f82a81959756181bddb] program:org.kde.dolphin frontend:wayland cap:d0072 focus:0
IC [922240db64634dcba637bd95b77dd7b1] program:org.kde.dolphin frontend:wayland cap:d0072 focus:0
IC [083ad434c0214061bbdc6cc5c424853d] program:org.kde.dolphin frontend:wayland cap:72 focus:0
IC [9aba763b1cfa4961b4c658d7340e49dd] program:org.kde.dolphin frontend:wayland cap:800050072 focus:0
IC [45e3f4a2ac6143ebbf485828642df299] program:org.kde.konsole frontend:wayland cap:72 focus:1
IC [ec84535e439d4565abcf533b85f32492] program:org.kde.ark frontend:wayland cap:d0072 focus:0
IC [a68d50e59ce34a0c906037146000d12a] program:steam frontend:wayland cap:72 focus:0
IC [7931767d486d490ea8d73dd18f48760f] program:firefox frontend:wayland cap:72 focus:0
IC [f8be0279066541418337e31f139da849] program:org.kde.kdeconnect.app frontend:wayland cap:d0072 focus:0
IC [d3be6cfec698464f983ed526933c0826] program: frontend:wayland cap:72 focus:0
Input Context without group
# 前端设置:
此脚本检查的环境变量仅能显示当前命令行的环境。仍有可能您的环境并没有应用于整个桌面。您可以通过使用命令对某个无法正常工作的进程使用命令 `xargs -0 -L1 /proc/$PID/environ` 检查此进程的实际的环境变量。
## Xim:
1. `${XMODIFIERS}`:
**XMODIFIERS 没有设置**
**请使用您发行版提供的工具将环境变量 XMODIFIERS 设为 "@im=fcitx" 或者将 `export XMODIFIERS=@im=fcitx` 添加到您的 `~/.xprofile` 中。参见 [输入法相关的环境变量:XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#XMODIFIERS)。**
从环境变量中获取的 Xim 服务名称为 fcitx.
2. 根窗口上的 XIM_SERVERS:
Xim 服务的名称与环境变量中设置的相同。
## Qt:
1. qt4 - `${QT4_IM_MODULE}`:
**请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中。参见 [输入法相关的环境变量:QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE)。**
**`fcitx5-qt4-immodule-probing` 未找到.**
2. qt5 - `${QT_IM_MODULE}`:
**请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中。参见 [输入法相关的环境变量:QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE)。**
**如果您的混成器完全支持 qt5 使用的 text-input 协议,您也可以使用 qt5 内置的 Wayland 模块。**
使用 fcitx5-qt5-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
QT_QPA_PLATFORM=xcb
QT_IM_MODULE=
IM_MODULE_CLASSNAME=QComposeInputContext
3. qt6 - `${QT_IM_MODULE}`:
**请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中。参见 [输入法相关的环境变量:QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE)。**
**如果您的混成器完全支持 qt6 使用的 text-input 协议,您也可以使用 qt6 内置的 Wayland 模块。**
使用 fcitx5-qt6-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
QT_QPA_PLATFORM=wayland
QT_IM_MODULE=
IM_MODULE_CLASSNAME=QtWaylandClient::QWaylandInputContext
4. Qt 输入法模块文件:
找到了未知的 fcitx qt 模块:`/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`。
找到了 fcitx5 的 qt6 输入法模块:`/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
找到了 fcitx5 的 qt 输入法模块:`/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
找到了 fcitx5 qt6 模块:`/usr/lib/fcitx5/qt6/libfcitx-quickphrase-editor5.so`。
下列错误也许并不准确,因为对路径所对应的 Qt 版本的猜测取决于发行版如何打包 Qt。如果您不使用任何对应版本的 Qt 程序,或者在 Wayland 下使用 Qt 的 text-input 支持,下列错误也不是严重问题。
**无法找到 Qt4 的 fcitx5 输入法模块。**
## Gtk:
1. gtk - `${GTK_IM_MODULE}`:
**请使用您发行版提供的工具将环境变量 GTK_IM_MODULE 设为 "fcitx" 或者将 `export GTK_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中。参见 [输入法相关的环境变量:GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#GTK_IM_MODULE)。**
**如果您的混成器完全支持 gtk 使用的 text-input 协议,您也可以使用 gtk 内置的 Wayland 模块。**
**`fcitx5-gtk2-immodule-probing` 未找到.**
使用 fcitx5-gtk3-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
GTK_IM_MODULE=wayland
使用 fcitx5-gtk4-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
GTK_IM_MODULE=wayland
2. `gtk-query-immodules`:
1. gtk 2:
**无法找到 gtk 2 的 `gtk-query-immodules`。**
**无法找到 gtk 2 的 fcitx5 输入法模块。**
2. gtk 3:
在 `/usr/bin/gtk-query-immodules-3.0` 找到了 gtk `3.24.52` 的 `gtk-query-immodules`。
版本行:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.52
已找到 gtk `3.24.52` 的 fcitx5 输入法模块。
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
3. Gtk 输入法模块缓存:
1. gtk 2:
**无法找到 gtk 2 的输入法模块缓存**
**无法在缓存中找到 gtk 2 的 fcitx5 输入法模块。**
2. gtk 3:
在 `/usr/lib/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.24.52` 的输入法模块缓存。
版本行:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.52
已找到 gtk `3.24.52` 的 fcitx5 输入法模块。
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
4. Gtk 输入法模块文件:
1. gtk 2:
找到的全部 Gtk 2 输入法模块文件均存在。
2. gtk 3:
找到的全部 Gtk 3 输入法模块文件均存在。
3. gtk 4:
找到的全部 Gtk 4 输入法模块文件均存在。
# 配置:
## Fcitx 插件:
1. 插件配置文件目录:
找到了 fcitx5 的插件配置目录:`/usr/share/fcitx5/addon`。
2. 插件列表:
1. 找到了 28 个已启用的插件:
Simplified and Traditional Chinese Translation 5.1.15
Classic User Interface 5.1.23
Clipboard 5.1.23
Cloud Pinyin 5.1.15
DBus 5.1.23
DBus Frontend 5.1.23
Emoji 5.1.23
Fcitx4 Frontend 5.1.23
Full width character 5.1.15
IBus Frontend 5.1.23
Input method selector 5.1.23
Keyboard 5.1.23
KDE Input Method Panel 5.1.23
Status Notifier 5.1.23
Notification 5.1.23
Pinyin 5.1.15
Extra Pinyin functionality 5.1.15
Punctuation 5.1.15
Quick Phrase 5.1.23
Rime 5.1.16
Spell 5.1.23
Table 5.1.15
Unicode 5.1.23
DBus Virtual Keyboard 5.1.23
Wayland 5.1.23
Wayland Input method frontend 5.1.23
XCB 5.1.23
X Input Method Frontend 5.1.23
2. 找到了 0 个被禁用的插件:
3. 插件库:
所有插件所需的库都被找到。
4. 用户界面:
找到了 3 个已启用的用户界面插件:
Classic User Interface
KDE Input Method Panel
DBus Virtual Keyboard
## 输入法:
1. `/home/alice/.config/fcitx5/profile`:
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=us
# Default Input Method
DefaultIM=keyboard-us
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
# Layout=
[GroupOrder]
0=Default
# 日志:
1. `date`:
2026年 10月 01日 星期四 21:28:39 CST
2. `/home/alice/.config/fcitx5/crash.log`:
`/home/alice/.config/fcitx5/crash.log` 未找到.
**警告:fcitx5-diagnose 的输出可能包含敏感信息,包括发行版名称,内核版本,正在运行的程序名称等。**
**尽管这些信息对于开发者诊断问题有帮助,请在公开发送到在线网站前检查并且根据需要移除的对应信息。**
另一个值得注意的现象是,每次开机都会弹出一个消息框,内容为“正在启动 Plasma 大屏幕输入处理程序(已失败)”,也许这就是原因?
(these words were all translated from english due to my IME issue)