Fcitx5 在kde wayland的环境是否需要设置环境变量的问题?

最近安装了fedora43 发现 kde wayland环境下, 使用fcitx5输入法,虽然提示仅设置虚拟硬盘,环境变量无需设置。但实际体验,仍然需要设置全部环境变量,包含gtk qt等,才能正常输入。而在 Kde neon(ubuntu24.04) wayland中就明确提示了 wayland不用设置环境变量,只设置虚拟硬盘即可。为什么会有这样的差异?kde都是最新版6.5.3。单独好奇问问,并不是说,不想设置环境变量。

还有 fedora43中,edge中登入账号对话框无法输入文字,复制粘贴才登陆上的。。

依旧需要注意环境变量,因为部分程序是 X11 程序,不会听 Wayland Frontend 的话的,Chrome 至少我这边走的是 Wayland 前端,输入法没遇到过问题

推荐是打开 Wayland Frontend 过后,使用环境变量辅助,不用管 fcitx5 的警告(毕竟除了 iBus 设置了环境变量会直接没法用,Fcitx5 至少没遇到那么多问题)

尤其是 XMODIFIERS、QT 这两个

GTK 优先通过 GTK 配置文件设置,如果要用 Flatpak 软件的话,那需要在环境变量里面加入 GTK

软件版本的差异吧。

你得说明是什么软件才好排查。软件是否运行于Xwayland下?是否是Qt5软件?是否是位于沙盒中的软件?

james@fedora:~$ dnf list --installed | grep fcitx5
fcitx5.x86_64 5.1.17-1.fc43 updates
fcitx5-autostart.noarch 5.1.17-1.fc43 updates
fcitx5-chinese-addons.x86_64 5.1.11-1.fc43 updates
fcitx5-chinese-addons-data.noarch 5.1.11-1.fc43 updates
fcitx5-configtool.x86_64 5.1.12-1.fc43 updates
fcitx5-data.noarch 5.1.17-1.fc43 updates
fcitx5-gtk.x86_64 5.1.5-1.fc43 updates
fcitx5-gtk2.x86_64 5.1.5-1.fc43 updates
fcitx5-gtk3.x86_64 5.1.5-1.fc43 updates
fcitx5-gtk4.x86_64 5.1.5-1.fc43 updates
fcitx5-libs.x86_64 5.1.17-1.fc43 updates
fcitx5-lua.x86_64 5.0.15-2.fc43 fedora
fcitx5-qt.x86_64 5.1.12-1.fc43 updates
fcitx5-qt-libfcitx5qt5widgets.x86_64 5.1.12-1.fc43 updates
fcitx5-qt-libfcitx5qt6widgets.x86_64 5.1.12-1.fc43 updates
fcitx5-qt-libfcitx5qtdbus.x86_64 5.1.12-1.fc43 updates
fcitx5-qt-qt5gui.x86_64 5.1.12-1.fc43 updates
fcitx5-qt-qt6gui.x86_64 5.1.12-1.fc43 updates
fcitx5-qt5.x86_64 5.1.12-1.fc43 updates
fcitx5-qt6.x86_64 5.1.12-1.fc43 updates
fcitx5-rime.x86_64 5.1.12-1.fc43 updates
kcm-fcitx5.x86_64 5.1.12-1.fc43 updates

都是5.17版本。 第二个 我的意思 我不在environment中添加变量 就会导致我在任何应用中 无法输入文字。

james@fedora:~$ cat /etc/environment
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

我是说使用输入法的软件及其所使用的GUI库的版本。

那你是通过「虚拟键盘」设置项启动的fcitx5吗?

edge 最新版这个窗口 就无法输入文字,即使我切换成英文。

答非所问。另外Edge是闭源软件,不适合作为调试突破口。

稍后 我在虚拟机中复现下再说吧。

需要设置的 跟着wiki走

/etc/environment是系统范围的环境变量配置,和x11以及wayland无关。
$HOME/.pam_environment三年前已经弃用了,用户范围环境变量可以用systemd$HOME/.config/environment.d/xxx.conf

好的感谢告知

虚拟机中没有此问题了。被网友误导了,以为Fedora必须要设置环境变量才能使用,与ubuntu系有所区别,才有此发问。谢谢大佬回复。