From 75571d3b82bc9c9adcf52d082834f79a376107e9 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 24 Apr 2016 08:53:18 +0200 Subject: libvirt integration: start spice-vdagent{d,} Aka Qemu guest agent (needs virtio-console) Thus we got keyboard integration on tty w/o having first to click Note: since we do not use systemd-logind, spice-vdagentd must be started with the '-X' option --- perl-install/install/steps_gtk.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/install/steps_gtk.pm') diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index d1672c742..455afc34a 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -45,6 +45,11 @@ sub new($$) { modules::load('xpad'); run_program::run('xset', 'm', '1/8', '1'); } + if (detect_devices::is_qemu()) { + mkdir_p('/var/run/spice-vdagentd'); + run_program::raw({ detach => 1 }, 'spice-vdagentd', '-X', '>', '/dev/null', '2>', '/dev/null'); + run_program::raw({ detach => 1 }, 'spice-vdagent', '>', '/dev/null', '2>', '/dev/null'); + } any::disable_x_screensaver(); run_program::raw({ detach => 1 }, 'mutter'); install::gtk::init_gtk($o); -- cgit v1.2.1