Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcitx5 无法输入中文 #33

Open
kuolemax opened this issue Aug 19, 2020 · 6 comments
Open

fcitx5 无法输入中文 #33

kuolemax opened this issue Aug 19, 2020 · 6 comments

Comments

@kuolemax
Copy link

默认的创建容器的脚本无法调出输入法,根据我使用的输入法(fcix5),将脚本调整为以下,虽然能调出输入法,但是却依然无法输入中文。

docker run -d --name qq \
    --device /dev/snd \
    -v $HOME/TencentFiles:/TencentFiles \
        -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e XMODIFIERS\ DEFAULT=@im=fcitx5 \
    -e QT_IM_MODULE\ DEFAULT=fcitx5 \
    -e GTK_IM_MODULE\ DEFAULT=fcitx5 \
    -e DISPLAY=unix$DISPLAY \
    -e AUDIO_GID=`getent group audio | cut -d: -f3` \
    -e VIDEO_GID=`getent group video | cut -d: -f3` \
    -e GID=`id -g` \
    -e UID=`id -u` \
    bestwu/qq:im

环境:

OS: Arch Linux x86_64 
Host: 911K 
Kernel: 5.8.1-arch1-1 
Uptime: 14 hours, 2 mins 
Packages: 808 (pacman) 
Shell: zsh 5.8 
Resolution: 1920x1080 
DE: Plasma 5.19.4 
WM: KWin 
WM Theme: McMojave 
Theme: McMojave [Plasma], Os-Catalina-Gtk-night [GTK2/3] 
Icons: McMojave-circle-dark [Plasma], McMojave-circle-dark [GTK2/3] 
Terminal: konsole 
Terminal Font: Hack 16 
CPU: Intel i7-7700HQ (8) @ 3.800GHz 
GPU: Intel HD Graphics 630 
GPU: NVIDIA GeForce GTX 1050 Ti Mobile 
Memory: 5197MiB / 15652MiB
@top-bettercode
Copy link
Owner

有没有试过这样配置:

    -e XMODIFIERS=@im=fcitx5 \
    -e QT_IM_MODULE=fcitx5 \
    -e GTK_IM_MODULE=fcitx5

@kuolemax
Copy link
Author

有没有试过这样配置:

    -e XMODIFIERS=@im=fcitx5 \
    -e QT_IM_MODULE=fcitx5 \
    -e GTK_IM_MODULE=fcitx5

试过了,结果与我之前的配置一样,输入法显示是rime,但是无法输入中文

@top-bettercode
Copy link
Owner

是装了fcitx5-rime吗,我在manjaro linux上测试了fcitx5(未安装fcitx5-rime)没问题

@kuolemax
Copy link
Author

是装了fcitx5-rime吗,我在manjaro linux上测试了fcitx5(未安装fcitx5-rime)没问题

是的,我安装并在使用fcitx5-rime,还有就是qq会闪退,不清楚具体什么原因,因为有时候在qq界面上右键就会闪退,有时候是点击的时候会闪退,不太清楚具体的闪退原因。

@therainisme
Copy link

-e XMODIFIERS="@im=fcitx" \
-e QT_IM_MODULE=fcitx5 \
-e GTK_IM_MODULE=fcitx \

我这样配置就好了

@kuolemax
Copy link
Author

-e XMODIFIERS="@im=fcitx" \
-e QT_IM_MODULE=fcitx5 \
-e GTK_IM_MODULE=fcitx \

我这样配置就好了

应该是fcitx-rime比较特殊,这个输入法真是让人又爱又恨

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

No branches or pull requests

3 participants