qvm-copy-to-vm2.kde: calculate size of sparse files correctly
This commit is contained in:
parent
7ac754eb63
commit
fab96d2225
@ -23,7 +23,7 @@
|
|||||||
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
|
VM=$(kdialog -inputbox "Enter the VM name to send files to:")
|
||||||
if [ X$VM = X ] ; then exit 0 ; fi
|
if [ X$VM = X ] ; then exit 0 ; fi
|
||||||
|
|
||||||
SIZE=$(du -c "$@" | tail -1 | cut -f 1)
|
SIZE=$(du --apparent-size -c "$@" | tail -1 | cut -f 1)
|
||||||
REF=$(kdialog --progressbar "Copy progress")
|
REF=$(kdialog --progressbar "Copy progress")
|
||||||
qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE
|
qdbus $REF org.freedesktop.DBus.Properties.Set "" maximum $SIZE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user