summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps_gtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-04-24 08:53:18 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-07-08 05:08:56 +0200
commit75571d3b82bc9c9adcf52d082834f79a376107e9 (patch)
treebb1378470df1fb479fa9eb010e07d10dc14f0bb7 /perl-install/install/steps_gtk.pm
parent5c1310d4774da3846289b0dd6467a4b53e9103c8 (diff)
downloaddrakx-75571d3b82bc9c9adcf52d082834f79a376107e9.tar
drakx-75571d3b82bc9c9adcf52d082834f79a376107e9.tar.gz
drakx-75571d3b82bc9c9adcf52d082834f79a376107e9.tar.bz2
drakx-75571d3b82bc9c9adcf52d082834f79a376107e9.tar.xz
drakx-75571d3b82bc9c9adcf52d082834f79a376107e9.zip
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
Diffstat (limited to 'perl-install/install/steps_gtk.pm')
-rw-r--r--perl-install/install/steps_gtk.pm5
1 files changed, 5 insertions, 0 deletions
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);