Tdesktop: Linux: Input methods (Fcitx etc.) do not work

Created on 31 Dec 2014  路  43Comments  路  Source: telegramdesktop/tdesktop

Telegram on Linux does not support input methods for East Asian languages. For example, fcitx does not work.

In other Linux programs pressing (for example) Ctrl+Space activates the input method. In Telegram, nothing happens. Also, you cannot select the input method with right clicking in the text box, as it would work in other programs.

Most helpful comment

I got it working by force the QT_IM_MODULE variable, not sure if this helps.

_Node_: This is Ubuntu, with fcitx-libs-qt5 and its front-end installed.

QT_IM_MODULE=fcitx /opt/telegram/Telegram

All 43 comments

I use default Qt input fields, I'm not sure how to make them support those features.

I think you should link libfcitxplatforminputcontextplugin.so into telegram.Default,Qt5 supported ibus only.Qt5 supported input method is here /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/

Ubuntu does not install fcitx-qt5 package for me, I could not find this plugin in Qt source and don't know where did you take one.

https://launchpad.net/ubuntu/+source/fcitx-qt5

sudo apt-get install fcitx-frontend-qt5

I've tried that and got "E: Unable to locate package fcitx-frontend-qt5" on ubuntu 12.04. Maybe I should use 14.04 or some other version, but last time I tried it Telegram built on 14.04 failed to launch on 12.04, and built on 12.04 launches everywhere, I didn't have time then to figure out why.

Yeah, it is found in ubuntu 14.04, so I'll look into it some day.

@telegramdesktop many thanks!
This could be the last thing that stops me using telegram desktop on Linux :)

Waiting For The Support :)

@telegramdesktop I hope it will support input methods soon.

Hi,owner. When you debug on QT5锛宲lease concern about these .so files in this folder.Add these to your QT creator environment. copy in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/
2015-03-03 19 39 34

I use ibus-chewing, and it still can't type. (fedora 21)

Waiting for this feature.

current workaround methods: 1. use the Cutegram client instead. or 2. type your Chinese/Korean/Japanese/... somewhere else and paste it into Telegram.

@mxa Cutegram doesn't support fcitx too.

waiting for the support!

I tried ibus and gcin on KDE 4, Fedora 21. :(

If you cannot wait, you can use Telegram web client https://web.telegram.org/

If you use Firefox, you can install Firefox app https://marketplace.firefox.com/app/telegram

If you use Chrome, you can isntall Chrome app https://telegram.org/dl/webogram/chromeapp

These two web app works similiar as native app, but can not support tray icon. I think it is not a big problem. Since both Firefox and Chrome are not 100% stable, your web app may crash occasionally. My Telegram Firefox app crash twice in 3 days.

Telegram 0.8.11, Ubuntu 14.04 x64, iBus (ibus-m17n) doesn't work.
Waiting for the support!

I think this should be a high priority issue.

Waiting for this feature.

Ubuntu 14.04.2 LTS
fcitx version: 4.2.8.3
doesn't work

The lib you got with 'apt-get' was not the latest version. My qt-creator crashed when i put it into folder Tools/......../plugin/platforminputcontexts/
I have just compiled the latest libfcitxplatforminputcontextplugin.so and it's working perfectly with Qt5.4.1 on my ubuntu14.04.2(fcitx 4.2.8.5).
I tried some test program and i got fcitx working.
screenshot from 2015-05-19 23 04 11
I tried to compile tdesktop with Qt5.4.1 and got trouble in fixing the changed functions such as QTextLayout(QtextEngine *e):d(e) {}.

When i was trying to compile the qtlib with -static, it warned that no dll(.so) will be supported.
Thus ibus is not supported because no .so can work. And in code I found libcomposeplatforminputcontextplugin.a imported only.
I may try compiling with Qt5.4.0 some day but i have no time recently.
The compiled lib was on my google drive: https://drive.google.com/file/d/0B18XN3r6jNU1QlRybTdZbkFmT2s/view
I hope someone can test whether it works.
For author@telegramdesktop, just try download my compiled lib and add LIB += path/to/libfcitxplatforminputcontextplugin.so. I hope it works.

Sorry for my poor english.

Confirming issue on Ubuntu 14.04.2 with Telegram 0.8.17 and IBus 1.5.5.

Found this via Google, which may or may not be relevant. The article is in Japanese but the code should be understandable.

Here is a patched version with ibus and fcitx support https://github.com/aphuse/tdesktop . I've tested, it works quite well.

@telegramdesktop please consider the fix upstairs

why not create a pull request so that the @telegramdesktop could merge

@tramchamploo Already pull requested, https://github.com/telegramdesktop/tdesktop/pull/759 ,
But @telegramdesktop never merge code pull requests.

i think is bug affects most of CJK users and is a urgent one, please consider fix it asap, thanks man!

Ubuntu 15.04 8.38 still not fixed :crying_cat_face:

I have given up the native app and I am fine with chrome app now. Everything works in telegram web app.

Ubuntu 15.04 with fcitx still not fixed.Waiting for this.

If you are using Chrome app in Linux desktop锛宮aybe you can consider this:锛坕ncluding Simplified Chinese,Traditional Chinese,Korean.

https://chrome.google.com/webstore/detail/telegram/obocnnbgpkjmmdmmhnieggghdphphefm?utm_source=chrome-ntp-icon

Please check out 0.8.50 dev version, it should be fine there, I've added Qt plugins for IBus and Fctix.

I try it,and I really can input Chinese.
This is really good news.
Thank you !

I have upgraded Telegram to latest version 0.85.1 on Ubuntu 12.04, but I can't still input Chinese.
First is fcitx-qt5 installed? if so, how to install it?
Thank you !

It is not a Telegram desktop problem!
You can refer to here: ( I have not tested! )( Maybe you should use Ubuntu14.04 )
http://blog.csdn.net/zyh821351004/article/details/43700699

Awesome it works in the latest version now (no need dev) o/

I got it working by force the QT_IM_MODULE variable, not sure if this helps.

_Node_: This is Ubuntu, with fcitx-libs-qt5 and its front-end installed.

QT_IM_MODULE=fcitx /opt/telegram/Telegram

This has worked for me out of the box, but is now broken again (using fcitx) since an OS update. The Telegram version did not change. @JixunMoe that solution solves the problem for me. Thanks.
@telegramdesktop please take a note.

I don't know why one of my PC needs link qt plugins to Telegram's bin directory but another doesn't need, they are Ubuntu 12.04 LTS and installed fcitx nightly build.

Following @JixunMoe 's initial advice, for Fedora fcitx users, ensure that you have the package fcitx-qt5 installed and that you have the following set up either in .bashrc or any environment file.

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

On manjaro it's quite easy:
just
`shell sudo pacman -S fcitx-qt5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

beppe9000 picture beppe9000  路  3Comments

slowaways picture slowaways  路  3Comments

abhyrz picture abhyrz  路  3Comments

JhonSane picture JhonSane  路  3Comments