diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-02-19 15:10:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-02-19 15:10:08 -0300 |
commit | 254cd8f68b0a19635702da3e29e05323b557ff33 (patch) | |
tree | 509d2350ab7aab1b4c360a967b388954e17d85ae /kvmx | |
parent | c776901a8415cf350e1886fd83309add3a0ad4d4 (diff) | |
download | vbox-254cd8f68b0a19635702da3e29e05323b557ff33.tar.gz vbox-254cd8f68b0a19635702da3e29e05323b557ff33.tar.bz2 |
Fix clip action
Diffstat (limited to 'kvmx')
-rwxr-xr-x | kvmx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,10 +12,10 @@ ACTION="$1" VM="$2" # Check -if [ -z "$VM" ]; then +if [ -z "$VM" ] && [ "$ACTION" != "clip" ]; then echo "usage: $BASENAME <action> <vm>" exit 1 -elif [ ! -e "$STORAGE/$VM.img" ]; then +elif [ ! -e "$STORAGE/$VM.img" ] && [ "$ACTION" != "clip" ]; then echo "file not found: $STORAGE/$VM.img" exit 1 fi @@ -42,7 +42,7 @@ if [ "$ACTION" == "up" ]; then # Fix window titles xdotool search --name "SPICEc:0" set_window --name $VM elif [ "$ACTION" == "clip" ]; then - local instances="`ps -o pid,command -e | grep "spice-vdagent$" | cut -d ' ' -f 2 | xargs`" + instances="`ps -o pid,command -e | grep "spice-vdagent$" | cut -d ' ' -f 2 | xargs`" # Kill old instances for pid in $instances; do |