[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#922334: ibus breaks KDE



Hi Osamu,

On Friday, February 15, 2019 8:11:03 PM PST Osamu Aoki wrote:
> Hi,
> 
> On Thu, Feb 14, 2019 at 09:41:11AM -0800, Charles Samuels wrote:
> > Package: ibus
> > Version: 1.5.14-3
> > Severity: important
> > Tags: upstream
> 
> Can you explain why you placed "Tags: upstream"?
> Any of the upstream changes in their recent ibus release has fix in it?

That tag is in error.

> 
> By the way, please install ibus-qt4 and possibly ibus-clutter first and
> reboot system to see if problem goers away..> .

I installed ibus-qt4 and rebooted. Nothing. I then installed ibus-clutter and 
restarted, still nothing.

Note that KDE uses Qt5 (not qt4).

> > Merely having the ibus package installed breaks KDE's Plasma
> > Shell. Keystrokes into certain applications fails, such
> > as KWallet and the Alt-F2 KRunner. These tools fail to receive
> > 99% of keystrokes.
> 
> Wait you are using stable system ... hmmmm you don't seem to use any
> input method.  You are using input of GTK and QT4 apps via xim.
> 
> > A similar bug with workarounds is listed here:
> > 
> > https://bugs.launchpad.net/ubuntu/+source/kubuntu-settings/+bug/1633721
> > 
> > For me, `ibus-daemon -d -s` seemed to work.

It worked, but it broke KDE's input configuration, such keymap changes with 
double-shift and everything in the "Keyboard Hardware and Layout" window. So 
even that is inadequate.

Since "krunner" is one of the broken apps, and it's still running, I did an 
experiment:

$ tr '\0' '\n' < /proc/`pidof krunner`/environ | grep -E '(ibus|IM)' | sort
CLUTTER_IM_MODULE=ibus
GTK_IM_MODULE=xim
LC_TIME=en_CA.UTF-8
QT4_IM_MODULE=ibus
QT_IM_MODULE=ibus
XDG_RUNTIME_DIR=/run/user/1000
XMODIFIERS=@im=ibus

And from a Konsole in which things are working:

$ env | grep -E '(ibus|IM)' | sort
CLUTTER_IM_MODULE=ibus
GTK_IM_MODULE=xim
LC_TIME=en_US.UTF-8
QT4_IM_MODULE=ibus
QT_IM_MODULE=ibus
XDG_RUNTIME_DIR=/run/user/1000
XMODIFIERS=@im=ibus

The only difference is LC_TIME, which is weird but not seemingly related.

> If you are not using ibus with any input-method, removing this is one
> option.  (Maybe this is pulled in by Gnome... then may not be easy...)

I have a third-party package installed which depends on ibus for some reason. 
I filed a bug with them as well, but the root cause is still that installing 
ibus breaks kde.

> 
> > -- Package-specific info:
> > default-display-manager: /usr/bin/sddm
> 
> You are KDE guy!

Correct, I run a KDE session.

I ran im-config and wound up with this in my .xinputrc:

# im-config(8) generated on Fri, 15 Feb 2019 08:43:45 -0800
run_im xim
# im-config signature: 00f07bacb5352b457537832981e99432  -

I doublechecked that this exact configuration is sufficient by removing it and 
then adding it again. KDE works normally, including the KDE "Keyboard Hardware 
and Layout" options.

Please let me know how else I can help to resolve this properly.

Charles


Reply to: