docker-deepin icon indicating copy to clipboard operation
docker-deepin copied to clipboard

关于无法输入中文

Open ygcaicn opened this issue 3 years ago • 3 comments

解决办法:使用fcitx输入法。

sudo apt update
sudo apt install fcitx fcitx-ui-qimpanel fcitx-sunpinyin fcitx-googlepinyin

image

image

重新登陆系统,然后在fcitx-configuration中添加拼音输入法。

image

image

添加完成如果仍然无法输入中文,再次重新登陆系统。

image

ygcaicn avatar Apr 20 '21 18:04 ygcaicn

@ygcaicn 感谢作者的付出~ 我尝试将docker-deepin.sh的init中fcitx改为ibus,当然是无效的... 应该是deepin的镜像内不包含ibus的问题吧~ 费了不少功夫才把ibus调整的很顺手,有点舍不得, 以后可能支持ibus吗? 安装fcitx会导致很多冲突以至于系统无法工作(闪退黑屏卡住各种问题), 最后只能选择自行修改 后续尝试 fork后改掉了install里的curl更新dokcer-deepin.sh, 然后将输入法相关系统变量改为ibus后ibus-pinyin工作正常, 微信输入汉字略有拖影, 不影响主要使用(我也不会修这种问题) image

WXZhao7 avatar Jun 30 '21 07:06 WXZhao7

@WXZhao7 thanks, I replaced fcitx with ibus in ~/.local/bin/docker-deepin.sh according to your suggestions , inputing is OK!

jmp0x7c00 avatar Feb 27 '22 15:02 jmp0x7c00

Update on this issue on 16 March 2023, Pop!OS (Ubuntu 22.04 LTS):

  1. Tried replacing fcitx with ibus in ~/.local/bin/docker-deepin.sh as @jmp0x7c00 suggested (since Pop!OS uses ibus-libpinyin as Chinese input), but made no difference in WeChat.

  2. Tried using fcitx input as @ygcaicn suggested, but fcitx wouldn't install due to removed virtual dependencies libqt5quickwidgets5 : Depends: qtbase-abi-5-15-3

  3. (Working solution starts here) Installed fcitx using Lei Mao's tutorial, but fcitx-configtool prints error of being unable to locate D-Bus service, and no input method is shown in the menu.

  4. To fix this, I used fcitx -d -r following scottro's practice, which throws an error of Start XIM error. Another XIM daemon named ibus is running?

  5. Adjusted input method with following command on this blog. echo -e "export XMODIFIERS=@im=fcitx\nexport GTK_IM_MODULE=\"xim\"\nexport QT_IM_MODULE=\"xim\"\nfcitx&">>~/.profile

  6. Log off and log in, Google Pinyin successfully called with Ctrl+Space, works fine on WeChat. image.png

mwdotzom avatar Mar 17 '23 00:03 mwdotzom