ibus won't turn 'on' when in certain programs

Bug #1007423 reported by V
90
This bug affects 18 people
Affects Status Importance Assigned to Milestone
ibus (Ubuntu)
Confirmed
Undecided
Unassigned
libreoffice (Fedora)
Won't Fix
High
libreoffice (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

What I expect to happen: I can turn on and change and use input methods in ibus in any program.

What really happens:
When in gedit, ibus turns on fine and I can input in Japanese (anthy) and other languages e.g. Chinese pinyin.
However, when using firefox, I can't get the input method to change to anthy or any other from "Input method Off" using my shortcut keys (Ctrl+Space).

If I manually right click ibus icon in the tray and left click the input method (e.g. anthy), the first time, the bullet point changes to anthy AND "Input method Off", the second time it will change completely to anthy but sometimes it stays at "Input method Off". Even if the bullet point changes to anthy, I am not able to input in anthy at all.

The first time I turned ibus 'on' to anthy in EiskaltDC++ it worked, however the following times it didn't work at all.
When I restart ibus, and try to switch to anthy or another input using right-click on the ibus icon, I only see "No input window" where there should be input methods. However, when I switch to kate/gedit, I am able to use any other input method, and can switch input methods using keyboard shortcut or GUI click menu.
After switching to another input method (e.g. anthy), I am able to switch to other input methods in apps that I can't use other input methods in (e.g. firefox) via the GUI click menu (but not keyboard shortcut).

If I check "Share the same input method among all applications":
-- and switch to anthy (or any other input method besides "Input method Off") in gedit, I am able to type using anthy in gedit, but when I switch programs to firefox for example, it won't work. I can see the anthy logo in the tray icon, and also in the anthy menu, but all the switch "input mode" "typing mode" "conversion mode" "dictionary" buttons will have disappeared, and only the anthy logo button (change ibus input) and "About the input method" button remain.
-- I can't change the input method (using keyboard shortcut orc GUI click menu) in any application I can't type using other input methods.
-- I can also no longer change input methods using the GUI click menu, but must use my shortcut (Alt-Shift_L), even in applications that I can input non-english in (i.e. gedit/kate).

Sometimes the GUI click menu displaying input methods with current input method bullet pointed doesn't display correctly, even in apps that I can input non-english in (gedit/kate). I must right-click the tray icon again for it to refresh and display properly. For example, if I switch using the keyboard shortcut, the input method will have changed but the bullet point will still be on the previous input method, unless I right click the tray icon again.

To 'input' other languages into firefox (or any other program), I must first type in gedit or kate and then copy the text over to firefox. I can't even type non-english languages in LibreOffice Writer!

I'm running Kubuntu 12.04 amd64 with KDE 4.8.3 and IBus 1.4.1-3ubuntu1
(On i5-520M, 4GB, GT330M)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ibus 1.4.1-3ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Fri Jun 1 23:33:41 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
ProcEnviron:
 LANGUAGE=en_AU
 TERM=xterm
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: ibus
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

Description of problem: This happens on in KDE. If you switch to a different input method in an LibreOffice application it will work. However, if you change focus to another window you will lose the ability to use any ibus input method

Version-Release number of selected component (if applicable): Fully updated F16 system. KDE 4.8.3-1

How reproducible:

Steps to Reproduce:
1. Start LibreOffice Writer and use Ctrl-space to toggle to an alternate input method. I used "Intelligent Bopomofo"
2. Enter some characters
3. Move mouse and click on another window, such as Konsole
4. Move back to the LibreOffice Writer window and click

Actual results: The ibus method display on the taskbar shows the keyboard icon and not the Intelligent Bopomofo icon. Mousing over the taskbar ibus icon show "No Input
Window"

Expected results: The LibreOffice window should have retained its input method setting. And, you should be able to toggle between methods with Ctrl-Space.

Additional info: FWIW, this problem does not exist in F17. Yet, ranked this bug as "high" since to do any work in LibreOffice I have to constantly switch between using KDE and GNOME. I also verified the bug on a VirtualBox VM.

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

Of course the Description of problem should have read "This happens ONLY in KDE".

Revision history for this message
In , Rex (rex-redhat-bugs) wrote :

Possible you've found a gtk or oxygen-gtk bug.

If you change gtk style in systemsettings->application appearance->gtk+ appearance to Adwaita or Clearlooks (and restart your session), does the problem persist?

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

On one system the gtk+ appearance was set to Mist. The other system was set to oxygen-gtk.

I tried setting both systems to Adwaita and Clearlooks and restarted my session each time.

The problem persists.

Revision history for this message
In , Rex (rex-redhat-bugs) wrote :

Oh, one last thing, is libreoffice-kde installed?

If so, try uninstalling, see if that helps
If not, try installing, same test.

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

libreoffice-kde was installed. Uninstalling did the trick. Now there is no problem to select input methods.....

New bugzilla against libreoffice-kde or transfer this one?

Thanks...

Revision history for this message
In , Rex (rex-redhat-bugs) wrote :

I'll re-assign it. then we can start trying to figure out how and why it's failing.

Revision history for this message
In , Caolan (caolan-redhat-bugs) wrote :

I wonder if this and bug 824709 are related

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

I was unable to reproduce the symptoms of https://bugzilla.redhat.com/show_bug.cgi?id=824709 on my system with libreoffice-kde either installed or not installed.

Revision history for this message
In , Johannes (johannes-redhat-bugs) wrote :

On the other hand, I (the reporter of 824709) have seen the bug you reported here, and that is on F17, and with Japanese-mozc. I will try uninstalling libreoffice-kde on Monday.

Revision history for this message
In , Ed (ed-redhat-bugs) wrote :

It seems I had not thoroughly tested in F17. I don't get the symptoms of 824709. Meaning the keyboard isn't dead. However, I get a failure of a slightly different nature. The ibus icon on the task bar continues to show either the bopomofo or mozc input method being selected. However, they are not. If you type you will only get what you type on the keyboard.

Erasing libreoffice-kde cures that symptom in F17. So, that component is causing troubles in many different ways on both F16 and F17,

Revision history for this message
In , Johannes (johannes-redhat-bugs) wrote :

I can confirm that erasing libreoffice-kde solves the problems (824709 as well the problem reported here) for me on F17, too. On the other hand, updating to the latest version 3.5.3.2-3.fc17.x86_64 of libreoffice-kde did not solve either problem.

Revision history for this message
V (vcgamesii) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ibus (Ubuntu):
status: New → Confirmed
Revision history for this message
Kazushige GOTOH (hautang0325) wrote :

I have installed "Linux Mint 13 KDE" as a virtual machine in VirtualBox.
ibus won't work on LM13 KDE also.

Revision history for this message
Aelfwyne (aelfwyne) wrote :

Also does not work in Kubuntu 12.04 (KDE with Ubuntu). Daemon operating correctly. Was working with XFWM4 window manager, but in KDE window manager ctrl-space has absolutely no effect, and the icon states no input window.

Revision history for this message
V (vcgamesii) wrote :

I can't get ibus to work at all in KDE anymore. Even with .bashrc edited with at the end:
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

iBus is working 100% in xfce howeover. (Xubuntu).
Do the Kubuntu/KDE guys look at this? Can we add them in (like a project) or do we have to report the bug there (bugs.kde.org) and would that come under kimtoy? =S

Revision history for this message
V (vcgamesii) wrote :

OK this is weird.
All the above still holds true (I didn't change any other settings)

I stopped running scim.
Then I booted into a Xubuntu (XFCE) session, worked in it for a couple of days. (Interesting to note metacity kept trying to replace xfwm4 and X restarted like every 2 hours, xfwm4 had trouble --replacing metacity).

I rebooted into Kubuntu (KDE). Viola, ibus now works.
ヤッター!
Works in: firefox, konsole, libre writer/calc, kate (using anthy, also individual input settings for each application).

Did this get fixed with an update or something? Are people still experiencing the bug?

Revision history for this message
Yevheniy (gekapes) wrote :

the same Problem in Kubuntu 12.04 64 bit

Revision history for this message
Ma Hsiao-chun (mahsiaochun) wrote :

IBus in 12.04 and earlier versions lacks a dependency to "gnome-icon-theme", you may need to install it manually for Kubuntu.
sudo apt-get install gnome-icon-theme

im-switch should be the recommended way of enabling IBus, instead of manually change environmental variables.

Built-in Firefox should work. Changes are that you download Firefox from Mozilla which is 32bit. 32bit Firefox don't work automatically on a 64bit system because of some technical reasons.

LibreOffice works on my Kubuntu 12.04 64bit box currently.

Other random apps should be discussed case-by-case.

Revision history for this message
Mechanical snail (replicator-snail) wrote :

Issue also occurs with Libreoffice under KDE on Ubuntu Precise (32-bit PAE). IBus works for me in other programs, including Firefox.

I linked a Fedora bug in libreoffice-kde that seems to be the same issue.

Revision history for this message
Mechanical snail (replicator-snail) wrote :

Also likely the same issue: https://wiki.archlinux.org/index.php/IBus#LibreOffice

Quote:

If IBus does load but doesn't see LibreOffice as an input window, add this line to ~/.bashrc:
    export XMODIFIERS=@im=ibus
And then, you need to start ibus with "-xim -d", for example, add this line to ~/.xinitrc:
    ibus-daemon --xim -d
But the horrible thing is that you need to start LibreOffice in terminal.
If you're using KDE and the above doesn't work, install "libreoffice-gnome" and add this line to ~/.xprofile if you don't mind running LibreOffice in GTK2 mode:
    export OOO_FORCE_DESKTOP="gnome"
That'll make IBus work with LibreOffice, and you can start LibreOffice from anywhere -- not just the terminal.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 16 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Revision history for this message
Rik Shaw (rik-shaw) wrote :

I have had tons of ibus issues with certain programs as well. Also, if others can confirm, additional problems are that the "menu" doesn't work (using a mouse) to switch input methods. The only consistent method is to use the keyboard shortcut.

BUT, I have solved all ibus problems (thanks to help from others) with some manual help, but need additional help from others to konw how to get these changes made known to the ubuntu devs.

     1. stock ibus for Ubuntu 12.04 (version 1.4.1-3ubuntu1) has several difficulties when using the system tray icon GUI to enable or disable keyboards. Sometimes it is not turned on properly even though the icon changes, sometimes it says "no input window" when there is indeed one, and other times it simply seems unresponsive: turning on the keyboard does nothing. This seems across "almost all applications". Same issues exist with the 12.10 ibus (different version, but still has the "ubuntu1" customization).

    Upstream versions of ibus from Debian Sid (version 1.4.1-7) solve all of these problems, and ibus seems to work very very well from the GUI menu with this update (another colleague packaged these for me for 32 and 64 bit: if anyone would like these I would be happy to send them. so please let me know). Note that this new version will not show up in the system tray (notification area) by default, however, so either run this command:

        gsettings set desktop.unity.panel systray-whitelist "['all']"

    or do the same with dconf-editor.

In summary for this first issue, it is WHATEVER Ubuntu is customizing that is causing a great headache for ibus users. Stock ibus from Debian works much better!

    2. Setting ibus as the "keyboard input method" in Language Support will cause unexpected behavior (even with the updated version of ibus from above). Particuarly in some apps (a custom mono based one I use is one example), the window ids of the various windows windows will be confused by ibus, thus resulting in the inablity of ibus to work consistently (again, from the GUI menu). If ibus is started manually, these problems do not appear. Only when started through Language Support. The workaround is to keep Language Support keyboard input method to "none" and have a startup application that runs "ibus-daemon -xrd" on login (can either be user level or system level in /etc/xdg/autostart).

Revision history for this message
Rik Shaw (rik-shaw) wrote :

I am copying here a comment i made on bug 1023165

I think these problems are all possibly related, as I have done the 2 below things and now have ibus working 100% in all applications, using the GUI to switch input methods (don't have to rely on the keyboard shortcut which was confusing for some of my users)

Here is my comment from the above bug (please don't take this as spam: main point is there is something amiss with the ubuntu customized version of ibus that is solved by reverting to the debian version!):

==============================================

I have had tons of ibus issues with certain programs as well (mainly in 12.04 but confirmed same problems in 12.10 and I would assume 13.04 as well but I have not tested yet).

BUT, I have solved all ibus problems (thanks to help from others) with some manual help, but need additional help from others to konw how to get these changes made known to the ubuntu devs.

     1. stock ibus for Ubuntu 12.04 (version 1.4.1-3ubuntu1) has several difficulties when using the system tray icon GUI to enable or disable keyboards. Sometimes it is not turned on properly even though the icon changes, sometimes it says "no input window" when there is indeed one, and other times it simply seems unresponsive: turning on the keyboard does nothing. This seems across "almost all applications". Same issues exist with the 12.10 ibus (different version, but still has the "ubuntu1" customization).

    Upstream versions of ibus from Debian Sid (version 1.4.1-7) solve all of these problems, and ibus seems to work very very well from the GUI menu with this update (another colleague packaged these for me for 32 and 64 bit: if anyone would like these I would be happy to send them. so please let me know). Note that this new version will not show up in the system tray (notification area) by default, however, so either run this command:

        gsettings set desktop.unity.panel systray-whitelist "['all']"

    or do the same with dconf-editor.

In summary for this first issue, it is WHATEVER Ubuntu is customizing that is causing a great headache for ibus users. Stock ibus from Debian works much better!

    2. Setting ibus as the "keyboard input method" in Language Support will cause unexpected behavior (even with the updated version of ibus from above). Particuarly in some apps (a custom mono based one I use is one example), the window ids of the various windows windows will be confused by ibus, thus resulting in the inablity of ibus to work consistently (again, from the GUI menu). If ibus is started manually, these problems do not appear. Only when started through Language Support. The workaround is to keep Language Support keyboard input method to "none" and have a startup application that runs "ibus-daemon -xrd" on login (can either be user level or system level in /etc/xdg/autostart).

Revision history for this message
Valentin Lab (vaab) wrote :

same issue here on 12.04 ... very broken and reliability problems also.

On one account (which has 'sudo' power) through NX Client, I must launch by hand the command : "ibus-daemon -xrd" (and after the session has loaded !?, this doesn't work in the startup application...) to get the input methods that I've configured to appears in the notification icon menu, otherwise, the icon is there, but no method are displayed in the menu...

On a simple user account through LTSP, this doesn't work, and I'm unable to type japanese: no input method appears in the menu of the icon found in the notification area. I've looked into various solution on the web without success (including all what is mentionned in this thread.)

And it worked flawlessly in 12.10 (by chance ?) on my desktop computer.

I would be happy to get the debian-sid packages mentionned by Andy Iverson (for 64bit)

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Closing as wontfix in LibreOffice. Comments #13 and #14 suggest this is really a bug in the Ubuntu patches on top of ibus on 12.04/12.10, so not investigating any further for LibreOffice. Anyone interested in getting this in 12.04 should propose to target this in ibus (ubuntu) against the 12.04 series.

Changed in libreoffice (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Rik Shaw (rik-shaw) wrote :

Sorry for the double post above in comments 12 and 13. Björn is correct this does NOT seem LibreOffice related.

I have since clarified that problem 2 from comment #13 above is not valid, and was related to the specific application we were using.

So, in summary, there does NOT seem to be any issue with setting ibus as the "keyboard input method" in Language Support.

But, problem 1 from comment #13 above regarding needing to use the Debian versions of ibus instead of the patched Ubuntu versions remains valid and true for Precise, Oneiric, and I am assuming others. Whatever is in the ubuntu patched version BREAKS gui use of ibus!

I have re-packaged ibus from debian in my ppa, so anyone wanting to confirm it solves their problems is welcome to try the packages from the ppa (if you add the ppa, on next dist-upgrade it should pull them in automatically):

https://launchpad.net/~wasta-linux/+archive/wasta

I have also applied this comment to the related ibus bug 1023165

Revision history for this message
Adrián Jiménez (adrianj2012) wrote :

I hope that this comment helps someone else, but I was having similar problems with ibus while using Firefox. Although I could input text using ibus, I could not right-click or access any of the menus (File, Edit, etc) while ibus was active.

I tried reinstalling ibus and changing the input method in the language settings, but the problem remained. However, when I installed the re-packaged ibus in the ~wasta-linux ppa as mentioned by Rik Shaw, ibus works perfectly with Firefox now. Thank you.

I am running Linux Mint 13 (maya) 64-bit and Firefox 31.0.

Feel free to move this comment if it seems that it is in the wrong place, as I am fairly new to posting.

Revision history for this message
IMS (blackberry8801) wrote :

Ubuntu 14.10 ibus

I can not "turn on" chinese pinyin.

/usr/share/im-config/data/21_ibus.rc:
set "GTK_IM_MODULE" to "xim" not "ibus", because of lacking of "gtk-2.0"("libgtk2.0-0") when after install the Ubuntu 14.10.

So, I can resolve my trouble by installing ibus-gtk(auto install libgtk2.0-0).

Revision history for this message
sheffield (gt6-y) wrote :

I can see this issue is still alive. So I'm one more person that is affected. I use Kubuntu 14.04 with KDE 4.13.3; Qt 4.8.6. libgtk is also installed. And it does the same as it was described in the beginning: IBus with anthy input works flawlessly with native KDE applications [Calligra, Rekonq/Konqueror, Kiten and console] but magically disappears when trying to input something in LibreOffice or Firefox/Opera.

OK, I noticed it doesn't disappear completely: when I blind type a word and press space to convert it to kanji, the usual candidate choice dialog window appears - but no output in the program window itself.

Ibus doesn't crash, doesn't complain about missing libs as well. If anyone has any idea about solving this problem, I'd be more than grateful.

Revision history for this message
Jack Voo (vwh88) wrote :

Look like this problem exist for long time. But as far as I remember last LTS 12.04 ibus does not behavior like this. It change when I use the shortcut key.

I can confirm the Ibus-daemon is working. When I use my shortcut key "CTRL + space", I can see the input change from English to Chinese in the daemon at panel (in my case). But when I type, it still show english. I can only type Chinese if I switch it using mouse.

I also observe 1 problem. The ibus will stick to the input of previous shutdown. If I used Chinese in my previous shutdown, the next time, it will keep showing Chinese. Even I switch it, it still show Chinese in the next program. The only solution is restart the ibus-daemon.

So bad, don't have other better input method.

I still like the old version of SCIM input at 8.04. So bad the

Revision history for this message
rodrigo (rodrigo1406) wrote :

C'mon, why is it so hard for this program to just change the input language?!

Revision history for this message
rodrigo (rodrigo1406) wrote :

In any program the cursor may be, I have to click one or more times in the ibus icon and in the chosen language (off/chinese-pinyin), the number of times used to be 1, 2 or 3 (until the icon changes), now seems to be more randomic, including > the number of times I wanna try. That's really a pain in the ass!

That's probably not the place, but it could (once this is fixed), also have the option to remember the language for different windows/text fields... this would speed up things a lot!

Thanks!

Revision history for this message
bhikkhu subhuti (bksubhuti) wrote :

I can confirm that this does not work in ubuntu mate 16.04 with a custom keyboard (see http://www.ubuntu4u.com/howtos/how-to-type-romanized-pali-and-sanskrit-in-ubuntu-12041210)
It works in terminal only. Burmese seems to work. The preferences for that particular setting does not work. (no dialog shows up)

Changed in libreoffice (Fedora):
importance: Unknown → High
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.