pot-desktop
pot-desktop copied to clipboard
[BUG]: 输入翻译无法使用 Fcitx5 输入中文
Description
Fedora 37 下使用 Pot 的 AppImage 包,打开输入翻译后无法切换为中文输入法并输入中文。
Reproduction
- Install Fcitx5 in Fedora 37
Opensudo dnf install fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool fcitx5-chinese-addons sudo dnf install fcitx5-autostart
Fcitx Configuration
and cancelOnly show current language
,then addpinyin
to the right side. - Open
pot.AppImage
and try switching input methods or typing Chinese in "输入翻译".
Platform
Linux
System Version
Fedora 37
Window System (Linux Only)
X11
Software Version
2.7.0
Log File
No response
Additional Information
No response
ArchLinux 无法复现
设置这些环境变量了吗?
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus
@Pylogmon .bashrc
设置这些环境变量后仍然无法输入中文
@Pylogmon 今天我升级了arch之后就出现了这个问题,本来我的chrome vscode都有问题,后来我在telegrame的archlinux-cn群里一个帮忙解决了,方法如下:
https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/205
Xwayland下应用程序无法输入(Chromium系程序)/Gtk2程序无法输入
临时解决方案
Chromium:在 ~/.config/gtk-3.0/settings.ini 里写下 gtk-im-module=fcitx
Gtk2:把 gtk-im-module="fcitx" 写进 ~/.gtkrc-2.0 里
或者降级 libx11 至 1.8.7
现在我的chrome vscode等软件都好了,但是pot-translate还是不行。我查了下我的升级记录,今天早上libx11升级了
upgraded libx11 (1.8.7-1 -> 1.8.8-1)
Ubuntu 22.04同样有这个问题。 软件版本:2.7.10
设置这些环境变量了吗?
GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus
设置好这个也不行。