qubes-update-dispvm-savefile-with-progress.sh 672 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. line1="<b>Please wait (up to 120s) while the DispVM savefile is being updated.</b>"
  3. line2="<i><small>This only happens when you have updated the template.</small></i>"
  4. line3="<i><small>Next time will be much faster.</small></i>"
  5. if [ -n "$KDE_FULL_SESSION" ]; then
  6. br="<br/>"
  7. else
  8. br="
  9. "
  10. fi
  11. notify-send --icon=/usr/share/qubes/icons/qubes.png --expire-time=120000 \
  12. "Updating default DispVM savefile" "$line1$br$line2$br$line3"
  13. ret=0
  14. rm -f /var/run/qubes/qvm-create-default-dvm.stdout
  15. if ! qvm-create-default-dvm --used-template --default-script >/var/run/qubes/qvm-create-default-dvm.stdout </dev/null ; then
  16. ret=1
  17. fi
  18. exit $ret