diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-03 11:28:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-03 11:28:33 -0300 |
commit | 52c495b4d51f4fe916a5e90ca197b1bc32c17604 (patch) | |
tree | 1caa7d094d427b3fa01c078f116b4c07bde3774a | |
parent | 33a23a1cb3b9dffdbf6592089a17dafaabb7f5a6 (diff) | |
download | kvmx-52c495b4d51f4fe916a5e90ca197b1bc32c17604.tar.gz kvmx-52c495b4d51f4fe916a5e90ca197b1bc32c17604.tar.bz2 |
Check for running instance at kvmx_xephyr
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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`" |