In Wine apps, fcitx5 can't switch IMEs and use Chinese/Pinyin on Fedora 41 / Plasma / Wayland

Questions about Wine on Linux
Post Reply
Feodor001
Newbie
Newbie
Posts: 1
Joined: Wed Mar 12, 2025 3:18 am

In Wine apps, fcitx5 can't switch IMEs and use Chinese/Pinyin on Fedora 41 / Plasma / Wayland

Post by Feodor001 »

On a fresh Fedora 41 / Plasma / Wayland install, English language as default in GUI.

Fcitx5 works fine with English and Chinese Pinyin IME in all packages except for Wine.

I installed and run Notepad with the following bash script:

#!/usr/bin/env bash
ARCH=32
export WAYLAND_DISPLAY=wayland-0
export WINEPREFIX="/home/$USER/.w${ARCH}_notepad"
export WINEARCH="win${ARCH}"

rm -rf "$WINEPREFIX"
mkdir -p "$WINEPREFIX"

env WAYLAND_DISPLAY=wayland-0 \
WINEPREFIX="$WINEPREFIX" \
GTK_IM_MODULE=fcitx5 \
QT_IM_MODULE=fcitx5 \
XMODIFIERS=@im=fcitx5 \
winecfg

env WAYLAND_DISPLAY=wayland-0 \
WINEPREFIX="$WINEPREFIX" \
GTK_IM_MODULE=fcitx5 \
QT_IM_MODULE=fcitx5 \
XMODIFIERS=@im=fcitx5 \
wine notepad

Notepad runs fine in English but:
- the keyboard shortcut that switches IME does not work
- switching IME from the applet, the Pinyin IME just displays in English.

Please advise
Post Reply