From: Silvio Rhatto Date: Tue, 3 Oct 2017 14:28:33 +0000 (-0300) Subject: Check for running instance at kvmx_xephyr X-Git-Tag: 0.1.0~381 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=52c495b4d51f4fe916a5e90ca197b1bc32c17604;p=kvmx.git Check for running instance at kvmx_xephyr --- diff --git a/kvmx b/kvmx index 1776d58..19142d5 100755 --- a/kvmx +++ b/kvmx @@ -1070,6 +1070,11 @@ function kvmx_vnc { # Connect to the guest using XDMCP/Xephyr # See http://jeffskinnerbox.me/posts/2014/Apr/29/howto-using-xephyr-to-create-a-new-display-in-a-window/ function kvmx_xephyr { + if ! kvmx_running; then + echo "$BASENAME: guest $VM is not running" + exit 1 + fi + # Clipboard sharing # https://ubuntuforums.org/showthread.php?t=1430363 GUEST_DISPLAY="`cat $DISPLAYFILE`"