Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gerritsangel opened this issue Dec 31, 2014 · 43 comments
Closed

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

gerritsangel opened this issue Dec 31, 2014 · 43 comments

Comments

@gerritsangel
Copy link

@gerritsangel gerritsangel commented Dec 31, 2014

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.

@ghost
Copy link
Collaborator

@ghost ghost commented Jan 16, 2015

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

@vipjeffreylee
Copy link

@vipjeffreylee vipjeffreylee commented Feb 15, 2015

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/

@ghost
Copy link
Collaborator

@ghost ghost commented Feb 17, 2015

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.

@vipjeffreylee
Copy link

@vipjeffreylee vipjeffreylee commented Feb 17, 2015

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

sudo apt-get install fcitx-frontend-qt5

@ghost
Copy link
Collaborator

@ghost ghost commented Feb 17, 2015

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.

@ghost
Copy link
Collaborator

@ghost ghost commented Feb 17, 2015

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

@giyyapan
Copy link

@giyyapan giyyapan commented Feb 21, 2015

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

@FindHao
Copy link

@FindHao FindHao commented Mar 1, 2015

Waiting For The Support :)

@ustcltx
Copy link

@ustcltx ustcltx commented Mar 3, 2015

@telegramdesktop I hope it will support input methods soon.

@deng-kai
Copy link

@deng-kai deng-kai commented Mar 3, 2015

Hi,owner. When you debug on QT5,please 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

@FreedomKnight
Copy link

@FreedomKnight FreedomKnight commented Mar 28, 2015

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

@guoyunhe
Copy link

@guoyunhe guoyunhe commented Apr 15, 2015

Waiting for this feature.

@mxa
Copy link

@mxa mxa commented Apr 15, 2015

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

@guoyunhe
Copy link

@guoyunhe guoyunhe commented Apr 15, 2015

@mxa Cutegram doesn't support fcitx too.

@trainchou
Copy link

@trainchou trainchou commented Apr 17, 2015

waiting for the support!

@jdh8
Copy link

@jdh8 jdh8 commented Apr 20, 2015

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

@guoyunhe
Copy link

@guoyunhe guoyunhe commented Apr 20, 2015

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.

@yura121
Copy link

@yura121 yura121 commented May 8, 2015

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

@guoyunhe
Copy link

@guoyunhe guoyunhe commented May 10, 2015

I think this should be a high priority issue.

@tigerlee
Copy link

@tigerlee tigerlee commented May 15, 2015

Waiting for this feature.

@n374
Copy link

@n374 n374 commented May 16, 2015

Ubuntu 14.04.2 LTS
fcitx version: 4.2.8.3
doesn't work

@arkbriar
Copy link

@arkbriar arkbriar commented May 19, 2015

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.

@adrianiainlam
Copy link

@adrianiainlam adrianiainlam commented May 26, 2015

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.

@bigeagle
Copy link

@bigeagle bigeagle commented Jun 15, 2015

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

@deng-kai
Copy link

@deng-kai deng-kai commented Jun 17, 2015

@telegramdesktop please consider the fix upstairs

@tramchamploo
Copy link

@tramchamploo tramchamploo commented Jun 29, 2015

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

@bigeagle
Copy link

@bigeagle bigeagle commented Jun 29, 2015

@tramchamploo Already pull requested, #759 ,
But @telegramdesktop never merge code pull requests.

@bruceauyeung
Copy link

@bruceauyeung bruceauyeung commented Jul 7, 2015

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

@Maijin
Copy link

@Maijin Maijin commented Jul 17, 2015

Ubuntu 15.04 8.38 still not fixed 😿

@pan-long
Copy link

@pan-long pan-long commented Jul 17, 2015

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

@xcodebuild
Copy link

@xcodebuild xcodebuild commented Jul 23, 2015

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

@taijuin
Copy link

@taijuin taijuin commented Aug 7, 2015

If you are using Chrome app in Linux desktop,maybe you can consider this:(including Simplified Chinese,Traditional Chinese,Korean.

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

@ghost
Copy link
Collaborator

@ghost ghost commented Aug 14, 2015

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

@auchri auchri closed this Aug 15, 2015
@taijuin
Copy link

@taijuin taijuin commented Aug 15, 2015

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

@lotuslwt
Copy link

@lotuslwt lotuslwt commented Aug 18, 2015

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 !

@taijuin
Copy link

@taijuin taijuin commented Aug 18, 2015

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

@Maijin
Copy link

@Maijin Maijin commented Aug 18, 2015

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

@jixunmoe
Copy link

@jixunmoe jixunmoe commented Sep 29, 2015

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
@mxa
Copy link

@mxa mxa commented Jan 21, 2016

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.

@dawncold
Copy link

@dawncold dawncold commented Apr 13, 2016

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.

@px4n
Copy link

@px4n px4n commented Dec 4, 2018

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
@blackwhitetony
Copy link

@blackwhitetony blackwhitetony commented Jul 18, 2019

On manjaro it's quite easy:
just

sudo pacman -S fcitx-qt5
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.