So I have a config like this:
{ config, lib, pkgs, ... }:
{
i18n.inputMethod = {
enabled = "ibus";
ibus = { engines = with pkgs.ibus-engines; [ rime ]; };
};
}
After switching, I have ibus
, ibus-daemon
, and ibus-setup
in my system, but seems like they cannot connect to ibus correctly:
nix-shell ❮ ibus list-engine
Can't connect to IBus.
How can I start configuring ibus? Why am I not able to connect it? Is it because the daemon is started inside dbus
?
1 Like
I also encountered this issue with following config
engines = with pkgs.ibus-engines; [ mozc ];
I ended up starting up the daemon my self by adding an init script to my window manager:
ibus-daemon --daemonize
However, the daemon should be automatically started by a service defined here https://github.com/NixOS/nixpkgs/blob/8284fc30c84ea47e63209d1a892aca1dfcd6bdf3/nixos/modules/i18n/input-method/ibus.nix
In my case, somehow, the file /etc/xdg/autostart/ibus-daemon.desktop
wasn’t created after running nixos-rebuild
.