]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Adds run_xpra config
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Apr 2017 12:30:33 +0000 (09:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Apr 2017 12:30:33 +0000 (09:30 -0300)
kvmx
kvmxfile

diff --git a/kvmx b/kvmx
index 82c43fa805e1cdc0247419d5f971fa0dc028254e..59827544b037bc202c75453d1b425b21b5de645a 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -212,6 +212,10 @@ function kvmx_up {
       $DIRNAME/$BASENAME spice $VM
     fi
 
+    if [ "$run_xpra" == "1" ]; then
+      $DIRNAME/$BASENAME xpra $VM
+    fi
+
     exit
   elif kvmx_running; then
     echo "$BASENAME: guest $VM is already running"
index b9cf8a2abb48f8e7a779ec443662e3affc935e77..0daf579379a9f2e3d03f5ce5cab696fbe25a3971 100644 (file)
--- a/kvmxfile
+++ b/kvmxfile
@@ -36,6 +36,9 @@ vnc_client="virt-viewer"
 # boots.
 run_spice_client="1"
 
+# Set this if you want to automatically a xpra session when the machine boots.
+run_xpra="0"
+
 # Set additional hostfwd mappings
 #port_mapping="hostfwd=tcp:127.0.0.1:8080-:80,hostfwd=tcp:127.0.0.1:8443-:443"