teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

cannot run fcitx5 input method for appimage format

Open newyorkthink opened this issue 1 year ago • 7 comments

Peek 2024-07-14 14-11

i using the fcitx5 to input chinese

i using the typora to compare teams

the teams cannot input chinese but typora it can using

the bug is your appimage not full gtk lib file

newyorkthink avatar Jul 14 '24 06:07 newyorkthink

and you need export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx

add appimage apprun

newyorkthink avatar Jul 14 '24 06:07 newyorkthink

Hi @newyorkthink, thanks for reporting.

Can you use the template and try with another packaging system? This is to ease finding the problem and solution (if there is any).

I suspect it's related to https://github.com/electron/electron/issues/33662 and that would mean we are fairly blocked.

IsmaelMartinez avatar Jul 14 '24 07:07 IsmaelMartinez

Hi @newyorkthink, thanks for reporting.

Can you use the template and try with another packaging system? This is to ease finding the problem and solution (if there is any).

I suspect it's related to electron/electron#33662 and that would mean we are fairly blocked.

you need add this

Detect input method framework

if pgrep -x "fcitx5" > /dev/null; then export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx echo "Using fcitx5" elif pgrep -x "fcitx" > /dev/null; then export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx echo "Using fcitx" elif pgrep -x "ibus-daemon" > /dev/null; then export QT_IM_MODULE=ibus export GTK_IM_MODULE=ibus echo "Using ibus" else echo "No fcitx, fcitx5, or ibus detected, falling back to default" fi

newyorkthink avatar Jul 14 '24 08:07 newyorkthink

# Detect input method framework
if pgrep -x "fcitx5" > /dev/null; then
    export QT_IM_MODULE=fcitx
    export GTK_IM_MODULE=fcitx
    echo "Using fcitx5"
elif pgrep -x "fcitx" > /dev/null; then
    export QT_IM_MODULE=fcitx
    export GTK_IM_MODULE=fcitx
    echo "Using fcitx"
elif pgrep -x "ibus-daemon" > /dev/null; then
    export QT_IM_MODULE=ibus
    export GTK_IM_MODULE=ibus
    echo "Using ibus"
else
    echo "No fcitx, fcitx5, or ibus detected, falling back to default"
fi

newyorkthink avatar Jul 14 '24 08:07 newyorkthink

in you AppRun

newyorkthink avatar Jul 14 '24 08:07 newyorkthink

Hi @newyorkthink, thanks for reporting.

Can you use the template and try with another packaging system? This is to ease finding the problem and solution (if there is any).

I suspect it's related to electron/electron#33662 and that would mean we are fairly blocked.

I try to change AppRun image image Peek 2024-07-14 16-45

and it work , but the appimage always show loss the ibus , please merge full library file for the team appimage

is my test, please fixed and review it , i just simple operate.

newyorkthink avatar Jul 14 '24 08:07 newyorkthink

Thanks for the info! I got a few changes on the go, and holidays will slow things down for a bit, but I will try to add it at some point.

If anyone needs it faster, I would appreciate a PR.

I mark it as a 'workaround available'. Thanks for reporting and providing a workaround!

IsmaelMartinez avatar Jul 14 '24 18:07 IsmaelMartinez

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 16 '24 08:10 github-actions[bot]

@newyorkthink I tried your method but it still doesn't allow me to use fcitx in teams-for-linux

xulongwu4 avatar Jan 07 '25 18:01 xulongwu4

我用的是Obsidian,也是appimage 无法同时用fcitx5(wayland)。 解决方法:https://forum.obsidian.md/t/ime-fcitx-doesnt-work-when-wayland-is-enabled/79941/3

🙃

liruohrh avatar Jan 23 '25 19:01 liruohrh

@liruohrh Yes, --enable-wayland-ime is the flag that is needed to make it work. Thank you!

xulongwu4 avatar Jan 23 '25 20:01 xulongwu4