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

Installing gnome-text-editor via WSL, can't bring up the input bar of ibus #9

Open
linghengqian opened this issue Dec 11, 2022 · 1 comment

Comments

@linghengqian
Copy link

linghengqian commented Dec 11, 2022

sudo apt update && sudo apt upgrade -y
sudo snap install gnome-text-editor
sudo apt-get install ibus ibus-gtk ibus-gtk3 fonts-noto-cjk fonts-noto-color-emoji dbus-x11 zenity -y
sudo apt-get install ibus-gtk4 -y
sudo apt-get install ibus-libpinyin -y
export XIM=ibus
export XIM_PROGRAM=/usr/bin/ibus
export QT_IM_MODULE=ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export DefaultIMModule=ibus
sudo vi /etc/profile.d/ibus.sh
ibus-daemon -x -d
ibus-setup
sudo pkill ibus-daemon
ibus-daemon -x -d
gnome-text-editor
  • In the ibus-setup step, configure the input source of ibus as the installed ibus-libpinyin. For vi /etc/profile.d/ibus.sh step, add the following content.
export XIM=ibus
export XIM_PROGRAM=/usr/bin/ibus
export QT_IM_MODULE=ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export DefaultIMModule=ibus
ibus-daemon -drx > /dev/null 2>&1
  • image

  • Use sudo snap install chromium to install chromium as a comparison, and the input method works normally.

  • 2022-12-12 (1)

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

1 participant