diff --git a/appvm/qvm-copy-to-vm b/appvm/qvm-copy-to-vm index 28d9428..def32d7 100755 --- a/appvm/qvm-copy-to-vm +++ b/appvm/qvm-copy-to-vm @@ -34,7 +34,7 @@ echo " received" mount /mnt/outgoing VMNAME=$1 shift -cp -v -a $* /mnt/outgoing +cp -v -a "$@" /mnt/outgoing #sometimes Dolphin lags a bit umount /mnt/outgoing || (sleep 1; umount /mnt/outgoing) || exit 1 qubes_penctl send $VMNAME || exit 1 diff --git a/appvm/qvm-copy-to-vm.kde b/appvm/qvm-copy-to-vm.kde index 0278db1..ab18c62 100755 --- a/appvm/qvm-copy-to-vm.kde +++ b/appvm/qvm-copy-to-vm.kde @@ -20,15 +20,14 @@ # # -FILES="$*" -VM=$(kdialog -inputbox "Enter the VM name to send $FILE to:") +VM=$(kdialog -inputbox "Enter the VM name to send files to:") if [ X$VM = X ] ; then exit 0 ; fi DEST=/mnt/outgoing -SIZE=$(du -c $FILES | tail -1 | cut -f 1) +SIZE=$(du -c "$@" | tail -1 | cut -f 1) REF=$(kdialog --progressbar "Copy progress") qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE FLAG=$(mktemp) -(qvm-copy-to-vm $VM $FILES ; rm $FLAG) & +(qvm-copy-to-vm $VM "$@" ; rm $FLAG) & while ! grep -q $DEST /proc/mounts && [ -f $FLAG ] ; do sleep 0.1 done