0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

waypipe on wslで日本語入力

0
Posted at

WSLのwaypipeでリモートのアプリを起動しても日本語入力できません。

fcitx5 -d --disable=waylandim,classicui

で起動していて、WSLではwaylandimが使えないためなのではと思っています。

リモート側のfcitx5を使う

waypipe ssh yourRemote env GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx lxterminal 

でyourRemoteで動いているfcitx5につながります。

ローカル側のDBUSのセッションバスを渡して使う

waypipe ssh -R /tmp/waypipe-dbus-yourLocal:/run/user/1000/bus \
yourRemote env \
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/waypipe-dbus-yourLocal \
GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx \
lxterminal

で、ローカルのfcitx5につながります。
よく使う場合、リモート側の/etc/ssh/sshd_configに

StreamLocalBindUnlink yes
StreamLocalBindMask 0111

を足してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?