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/NEWS | 2 ++ perl-install/install/share/list.xml | 2 ++ perl-install/install/steps_gtk.pm | 5 +++++ 3 files changed, 9 insertions(+) (limited to 'perl-install/install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 0223a6436..d20e95675 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,6 +1,8 @@ - include pvs/vgs/lvs symlinks - partionning: o display a wait message when adding a PV to VG +- libvirt integration: + o start spice-vdagent{d,} (Qemu guest agent) Version 17.49 - 6 July 2016 diff --git a/perl-install/install/share/list.xml b/perl-install/install/share/list.xml index dbc765467..d34d4fc7a 100644 --- a/perl-install/install/share/list.xml +++ b/perl-install/install/share/list.xml @@ -9,6 +9,7 @@ losetup lvm2 lvm lvs pvs vgs mdadm mdmon mount mount.nfs umount + spice-vdagent spice-vdagentd systemd-detect-virt xz @@ -80,6 +81,7 @@ 63-md-raid-arrays.rules 64-md-raid-assembly.rules 65-libwacom.rules + 70-spice-vdagentd.rules 75-net-description.rules 80-drivers.rules 80-libinput-device-groups.rules 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