nixos/tests/ibus: fix test

This commit is contained in:
Symphorien Gibol 2020-04-24 12:00:00 +00:00
parent a71dc0b27e
commit 5b7ffe6140

View File

@ -5,16 +5,12 @@ makeInstalledTest {
testConfig = { testConfig = {
i18n.inputMethod.enabled = "ibus"; i18n.inputMethod.enabled = "ibus";
systemd.user.services.ibus-daemon = {
serviceConfig.ExecStart = "${pkgs.ibus}/bin/ibus-daemon --xim --verbose";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
};
}; };
preTestScript = ''
# ibus has ibus-desktop-testing-runner but it tries to manage desktop session so we just spawn ibus-daemon ourselves
machine.succeed("ibus-daemon --daemonize --verbose")
'';
withX11 = true; withX11 = true;
# TODO: ibus-daemon is currently crashing or something
# maybe make ibus systemd service that auto-restarts?
meta.broken = true;
} }