dom0/dispvm: new progress window for DispVM generation (#422)
This commit is contained in:
parent
049a74d5af
commit
d0407c06af
@ -1,14 +1,26 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
trap "exit 1" USR1 TERM
|
|
||||||
export SHELL_PID=$$
|
ref=`kdialog --title="Updating default DispVM savefile" \
|
||||||
(
|
--progressbar \
|
||||||
echo "1"
|
"<center>
|
||||||
if ! qvm-create-default-dvm --used-template --default-script >/var/run/qubes/qvm-create-default-dvm.stdout </dev/null ; then
|
<font>
|
||||||
kill -USR1 $SHELL_PID
|
<b>Please wait (up to 120s) while the DispVM savefile is being updated.</b>
|
||||||
fi
|
<br>
|
||||||
echo 100
|
<i><small>
|
||||||
) | zenity --progress --pulsate --auto-close \
|
This only happens when you have updated the template.<br>
|
||||||
--text="Please wait (up to 120s) while the DispVM savefile is being updated. This only happens when you have updated the template, next time will be much faster." \
|
Next time will be much faster.
|
||||||
--title="Updating default DispVM savefile"
|
</small></i>
|
||||||
exit 0
|
</font>
|
||||||
|
</center>" 0`;
|
||||||
|
|
||||||
|
trap "qdbus $ref close" EXIT
|
||||||
|
|
||||||
|
#qdbus $ref showCancelButton true;
|
||||||
|
|
||||||
|
ret=0
|
||||||
|
|
||||||
|
if ! qvm-create-default-dvm --used-template --default-script >/var/run/qubes/qvm-create-default-dvm.stdout </dev/null ; then
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $ret
|
||||||
|
Loading…
Reference in New Issue
Block a user