rime / ibus-rime

【中州韻】Rime for Linux/IBus
https://rime.im
GNU General Public License v3.0
718 stars 103 forks source link

docker中通过x11转发gui程序到host桌面环境,无法用host环境的rime 对转发过来的gui程序录入文字 #174

Open nocanstillbb opened 4 months ago

nocanstillbb commented 4 months ago

我在docker容器中安装了ibus-rime

我运行的docker已经设置了以下环境变量

#!/bin/bash

runcmd="docker run\
        --name=hbb_rasp5_x11\
        --rm\
        -p 2244:22\
        -e DISPLAY=:2\
        -e XMODIFIERS=\"@im=ibus\"\
        -e QT_IM_MODULE=\"ibus\"\
        -e GTK_IM_MODULE=\"ibus\"
        -e AUDIO_GID=`getent group audio | cut -d: -f3` \
        -e GID=`id -g` \
        -e UID=`id -u` \
        -v /storage1/software/:/software
        -v /storage1/rpi5/build:/build
        -v /storage1/rpi5/src/:/src
        -v /storage1/rpi5/scripts/:/scripts
        -v /storage1/rpi5/sysroot/:/sysroot
        -v /storage1/rpi5/repos/:/repos
        -v /tmp/.X11-unix/:/tmp/.X11-unix
        -it rasp5:0.1   bash"

echo $runcmd
exec $runcmd
nocanstillbb commented 4 months ago

当我使用ibus-setup,(转发到Host 桌面环境中显示)添加rime输入法时,提示 image