pot-desktop icon indicating copy to clipboard operation
pot-desktop copied to clipboard

[BUG]: 输入翻译无法使用 Fcitx5 输入中文

Open YuanchenZhu2020 opened this issue 1 year ago • 5 comments

Description

Fedora 37 下使用 Pot 的 AppImage 包,打开输入翻译后无法切换为中文输入法并输入中文。

Reproduction

  1. Install Fcitx5 in Fedora 37
    sudo dnf install fcitx5 fcitx5-gtk fcitx5-qt fcitx5-configtool fcitx5-chinese-addons
    sudo dnf install fcitx5-autostart
    
    Open Fcitx Configuration and cancel Only show current language,then add pinyin to the right side.
  2. 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

YuanchenZhu2020 avatar Nov 24 '23 08:11 YuanchenZhu2020

ArchLinux 无法复现

Pylogmon avatar Nov 24 '23 09:11 Pylogmon

设置这些环境变量了吗?

GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

Pylogmon avatar Nov 24 '23 09:11 Pylogmon

@Pylogmon .bashrc 设置这些环境变量后仍然无法输入中文

YuanchenZhu2020 avatar Nov 24 '23 13:11 YuanchenZhu2020

@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)

zsytssk avatar Mar 27 '24 04:03 zsytssk

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

设置好这个也不行。

fattypiggy avatar May 27 '24 16:05 fattypiggy