Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ibus doesnt work in kde apps.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
akaoni
n00b
n00b


Joined: 18 Dec 2011
Posts: 17

PostPosted: Fri Mar 31, 2017 2:25 pm    Post subject: ibus doesnt work in kde apps. Reply with quote

Hello gentlemen

I am a perverted guy running sabayon (which is compiled gentoo) and ibus (anthy) for japanese input in kde/plasma.
It was working for a long time, the setup is as in this page : https://wiki.gentoo.org/wiki/IBus
Only KDE apps are is not working (ok in firefox 問題ないです).
Same account on KDE with other distro same machine works fine. GTK apps are ok, chrome as well.

I am very annoyed with that and trace the process to try to understand (interested in fix and how it works as well).
Any idea would be welcome.

I can see that with non KDE when typing (I see read/write/messages ..) that shows communication :
Code:

[pid  2339] <... write resumed> )       = 8
[pid  2339] futex(0x68b6a0, FUTEX_WAKE_PRIVATE, 1) = 1
[pid  2313] <... futex resumed> )       = 0
[pid  2313] futex(0x68b6a0, FUTEX_WAKE_PRIVATE, 1) = 0
[pid  2339] sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\26\1\0\0009\3\0\0=\0\0\0\7\1s\0\24\0\0\0org.free"..., iov_len=358}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 358
[pid  2313] poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
[pid  2313] read(3, "\1\0\0\0\0\0\0\0", 16) = 8
..
[pid  2313] poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}], 2, 0 <unfinished ...>
[pid  2339] poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=14, events=POLLIN}], 8, -1 <unfinished ...>
...
[pid  2313] <... poll resumed> )        = 1 ([{fd=3, revents=POLLIN}])
[pid  2313] read(3, "\1\0\0\0\0\0\0\0", 16) = 8
[pid  2313] write(6, "\1\0\0\0\0\0\0\0", 8) = 8




but in KDE apps nothing just polling :
Code:

[pid  2338] poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, 3997) = 0 (Timeout)
[pid  2338] poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, 3996) = 0 (Timeout)
[pid  2338] poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN}], 2, 3995) = 0 (Timeout)


above processes :
Code:
gdbus     2313 2339     pierre  txt       REG                8,6    163992    1312949 /usr/bin/ibus-daemon

(below trace is with different pid)


So it look like KDE is not speaking to ibus for any reason.
==> Anybody has a clue on that ?

Further info :

There use to be a skimpanel stuff but I think it is deprecated.
QT looks to have integrated ibus compatibility.
ibus doesn't support ibus natively and the package app-i18n/ibus-qt-1.3.3 which present some libraries :
Code:
╠  ### /usr/lib64/libibus-qt.so
╠  ### /usr/lib64/libibus-qt.so.1
╠  ### /usr/lib64/libibus-qt.so.1.3.0
╠  ### /usr/lib64/qt4
╠  ### /usr/lib64/qt4/plugins
╠  ### /usr/lib64/qt4/plugins/inputmethods
╠  ### /usr/lib64/qt4/plugins/inputmethods/libqtim-ibus.so


Also in /etc/X11/xinit/xinput.d/ibus.conf there are some references to qt libs.
I have the qt4 one but not the following :
Code:
..
if test -f /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
   test -f /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \
..



plasma5 is compiled with ibus flag as well.

If my understanding is correct KDE/QT should load some libraries to be able to communicate with ibus.
How can I check if this libs are loaded and how kde is using them.

Thanks for any clue on that.

Here are installed packages :

Code:
app-i18n/ibus
2384 app-i18n/ibus-anthy
app-i18n/ibus-qt
app-i18n/ibus-qt-1.3.3


.xprofile
Code:
export LC_CTYPE=ja_JP.UTF-8

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
#export QT_IM_MODULE=ibus kwrite
ibus-daemon -d -x
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Mar 26, 2018 10:16 pm    Post subject: Reply with quote

up please
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
khumba
n00b
n00b


Joined: 16 Jun 2011
Posts: 43

PostPosted: Wed Mar 28, 2018 5:32 am    Post subject: Reply with quote

My apologies if replying to such an old thread is the wrong thing to do.

I got ibus working with KDE/Qt apps by setting the environment variables in a /etc/plasma/startup/99-ibus.sh:

Code:
export XMODIFIERS="@im=ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="ibus"


I also no longer use an .xinitrc or .xsession with KDE, I'm not sure if that affects it.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Wed Mar 28, 2018 7:12 am    Post subject: Reply with quote

Why it is wrong to answer old threads?

I put those export(s) into .bashrc

Is it the same?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13982

PostPosted: Thu Mar 29, 2018 2:03 am    Post subject: Reply with quote

If the answer is valid, it's probably fine. However, waking up an old thread to post a highly speculative answer or to ask the original poster for more information is more questionable.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Jul 02, 2018 9:55 am    Post subject: Reply with quote

In my humble (and limited to my case) opinion ibus is just crap.
Let me wreak!
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7077
Location: Austria

PostPosted: Mon Jul 02, 2018 2:26 pm    Post subject: Reply with quote

Code:
$ equery u qtgui
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
...
 - - ibus          : Build the IBus input method plugin
...

_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Jul 02, 2018 4:13 pm    Post subject: Reply with quote

have to be + + or - - is good?
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7077
Location: Austria

PostPosted: Mon Jul 02, 2018 4:20 pm    Post subject: Reply with quote

What do you think?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Mon Jul 02, 2018 4:22 pm    Post subject: Reply with quote

asturm wrote:
What do you think?

that you use ibus and you have - - ?
:)

Go and change to + + :D

Seriuosly. I have I have enabled ibus into make.conf
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2413
Location: イタリアのロディで

PostPosted: Wed Jul 04, 2018 10:45 am    Post subject: Reply with quote

nothing changed :cry:
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum