ibus appears to have stopped working on my laptop, although it works just fine on my desktop (both use latest openSUSE Tumbleweed packages). Apparently ibus itself does not detect any engines being present: I was instructed to run ibus-setup to fix this, yet this command apparently fails due to a problem with some icons and GTK. I found this report which describes the issue, and this is my own output when running the command:
mircea@linux-qugf:~> ibus-setup
(ibus-setup:4590): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 52, in <module>
from enginecombobox import EngineComboBox
File "/usr/share/ibus/setup/enginecombobox.py", line 32, in <module>
from icon import load_icon
File "/usr/share/ibus/setup/icon.py", line 36, in <module>
icon_theme.prepend_search_path(icondir)
AttributeError: 'NoneType' object has no attribute 'prepend_search_path'
mircea@linux-qugf:~>
Ibus usually requires a front end engine which you probably can install via zypper or yast. On my Tumbleweed, I manually installed ibus-anthy since my corporate sponsor Fujitsu has websites in Japanese, as well as ibus-pinyin which handles my mother tongue i.e. mandarin Chinese. Usually when I use zypper or yast the packages are changed accordingly since there are dependency rules behind them. As a matter of personal choice, seldom do I invoke ibus-setup manually.
I don’t currently need Asian characters on my machine however. I don’t have such installed on my desktop either, and ibus still works fine… I’m only looking to repair it on my laptop so it works in normal parameters again. Perhaps the default (english / latin) ibus engine somehow got uninstalled? What is its package name so I may check?
Without ibus running, most applications don’t seem to detect the keyboard and completely ignore me typing. Including default system components, such as krunner.
Interesting - I’m not using it at all with my Plasma 5 desktop. Did you read the Plasma 5 notes? https://wiki.archlinux.org/index.php/IBus#Plasma_5
Somewhere back in time you must have made a deliberate decision to install/configure it?
Huh. I never made that decision actually; ibus was simply installed by “zypper dup” at some point, I believe over two years ago. I always thought it’s a default system component, and I couldn’t / shouldn’t try to uninstall it!
Sorry to revive a dead thread, but I’m encountering this same error, and I actually do want to use an alternate language input.
I have all the following packages installed:
ibus (meta-package?)
ibus-chewing (meta-package?)
ibus-branding-openSUSE-KDE
ibus-gtk
ibus-gtk3
ibus-qt
The traceback originates with a different method call, but leads back to the same AttributeError:
$ ibus-setup
(ibus-setup:2485): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 54, in <module>
from emojilang import EmojiLangButton
File "/usr/share/ibus/setup/emojilang.py", line 40, in <module>
from icon import load_icon
File "/usr/share/ibus/setup/icon.py", line 36, in <module>
icon_theme.prepend_search_path(icondir)
AttributeError: 'NoneType' object has no attribute 'prepend_search_path'
Anybody have any insight? Might this be a bug in ibus?
I filed a bug here. Hopefully someone will come along and tell us it’s not a bug, and show us an easy fix.
In any case, I can confirm what @deano_ferrari said: ibus is not system-critical, and should only be required for certain ibus-specific input methods. I did not have it installed at all on my laptop with a fresh install of Tumbleweed 13.3, and only installed it to get Chinese input working (though perhaps it is different if your default locale is not US English).
So what’s going on with your computer right now? You can’t type anything in at all? Is it only in the desktop environment, or also in the virtual console (CTRL-ALT-F1)?
Thank you for reporting; Wasn’t sure if this was a bug that needed to be reported on the issue tracker, though it definitely looks like it now.
As for what happens to my system: If the ibus daemon dies, I can no longer type in the fields of some applications, though I can keep typing in others. Some KDE programs only let me type the first letter in a field, after that I can no longer type until restarting ibus.