aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-07-15 16:42:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-07-15 16:42:29 -0300
commit9def1c431daa992bf04353694af5c6d794ac2407 (patch)
treef90318905b3330dcf8e32f6d82e26b7db52e0079
parent2b0fdc40e076f46a2212f77a7d913042f1c8088d (diff)
downloadkvmx-9def1c431daa992bf04353694af5c6d794ac2407.tar.gz
kvmx-9def1c431daa992bf04353694af5c6d794ac2407.tar.bz2
Drafted a x2go integration
-rwxr-xr-xkvmx22
1 files changed, 22 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 0c83fb9..b9e7b2c 100755
--- a/kvmx
+++ b/kvmx
@@ -1477,6 +1477,11 @@ function kvmx_xpra {
exit 1
fi
+ if ! kvmx_running || kvmx_suspended; then
+ echo "$BASENAME: $VM not running"
+ exit 1
+ fi
+
local action="$1"
shift
@@ -1493,6 +1498,23 @@ function kvmx_xpra {
fi
}
+# X2Go integration
+#function kvmx_x2go {
+# if ! which x2goclient &> /dev/null; then
+# echo "$BASENAME: please install x2goclient package"
+# exit 1
+# fi
+#
+# if ! kvmx_running || kvmx_suspended; then
+# echo "$BASENAME: $VM not running"
+# exit 1
+# fi
+#
+# SSH="`cat $SSHFILE`"
+#
+# x2goclient --ssh-port=$SSH --ssh-key=$SSHKEY --session=$VM
+#}
+
# Alias for up command
function kvmx_start {
kvmx_up $*