[Spice-devel,Xspice,03/11] scripts/Xspice: add default spice-vdagent executable names

Submitted by Uri Lublin on Jan. 26, 2015, 10:35 a.m.

Details

Message ID 0b0cb8e3f8fbb06ab292fa24c2b4e9893a726ca6.1422267879.git.uril@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Uri Lublin Jan. 26, 2015, 10:35 a.m.
---
 scripts/Xspice |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/scripts/Xspice b/scripts/Xspice
index d48318c..6eb5294 100755
--- a/scripts/Xspice
+++ b/scripts/Xspice
@@ -128,6 +128,10 @@  def agents_new_enough(args):
     return True
 
 if args.vdagent_enabled:
+    if not args.vdagent_exec:
+        args.vdagent_exec = 'spice-vdagent'
+    if not args.vdagentd_exec:
+        args.vdagentd_exec = 'spice-vdagentd'
     args.vdagent_exec = which(args.vdagent_exec)
     args.vdagentd_exec = which(args.vdagentd_exec)
     if not agents_new_enough(args):
@@ -288,6 +292,7 @@  if args.vdagent_enabled:
         if os.path.exists(f):
             os.unlink(f)
     cleanup_files.extend([args.vdagent_virtio_path, args.vdagent_uinput_path])
+
 xorg = launch(executable=args.xorg, args=exec_args + xorg_args)
 time.sleep(2)