IsmaelMartinez / teams-for-linux

Unofficial Microsoft Teams for Linux client
GNU General Public License v3.0
2.69k stars 223 forks source link

cannot run fcitx5 input method for appimage format #1340

Open newyorkthink opened 1 month ago

newyorkthink commented 1 month ago

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 commented 1 month ago

and you need export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx

add appimage apprun

IsmaelMartinez commented 1 month ago

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.

newyorkthink commented 1 month ago

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 commented 1 month ago
# 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 commented 1 month ago

in you AppRun

newyorkthink commented 1 month ago

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.

IsmaelMartinez commented 1 month ago

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!