alacritty无法使用输入法问题

alacritty在使用wayland的系统上无法切换出中文输入法,将alacritty菜单项执行的命令更改为:

1
env WINIT_UNIX_BACKEND=x11 alacritty

这样将渲染后端更改为x11

比如~/.local/share/applications/alacritty.desktop

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\[Desktop Entry\]
Type=Application
TryExec=alacritty
Exec=env WINIT_UNIX_BACKEND=x11 alacritty
Icon=Alacritty
Terminal=false
Categories=System;TerminalEmulator;

Name=Alacritty
GenericName=Terminal
Comment=A cross-platform, GPU enhanced terminal emulator
StartupWMClass=Alacritty
Actions=New;

\[Desktop Action New\]
Name=New Terminal
Exec=alacritty