dispvm: use tray notification for "Updating default DispVM savefile" msg (#877)
This commit is contained in:
parent
6ce4028033
commit
c10909e9f9
@ -4,28 +4,14 @@ line1="<b>Please wait (up to 120s) while the DispVM savefile is being updated.</
|
|||||||
line2="<i><small>This only happens when you have updated the template.</small></i>"
|
line2="<i><small>This only happens when you have updated the template.</small></i>"
|
||||||
line3="<i><small>Next time will be much faster.</small></i>"
|
line3="<i><small>Next time will be much faster.</small></i>"
|
||||||
|
|
||||||
if type kdialog &> /dev/null; then
|
if [ -n "$KDE_FULL_SESSION" ]; then
|
||||||
ref=`kdialog --title="Updating default DispVM savefile" \
|
br="<br/>"
|
||||||
--progressbar \
|
|
||||||
"<center>
|
|
||||||
<font>
|
|
||||||
$line1<br>
|
|
||||||
$line2<br>
|
|
||||||
$line3
|
|
||||||
</font>
|
|
||||||
</center>" 0`;
|
|
||||||
|
|
||||||
trap "qdbus $ref close" EXIT
|
|
||||||
else
|
else
|
||||||
pipe=/tmp/qvm-create-default-dvm-$$.progress
|
br="
|
||||||
mkfifo $pipe
|
"
|
||||||
zenity --progress --pulsate --auto-close --text "$line1\n$line2\n$line3" < $pipe &
|
|
||||||
exec 5>$pipe
|
|
||||||
echo 0 >&5
|
|
||||||
trap "echo 100 >&5" EXIT
|
|
||||||
fi
|
fi
|
||||||
|
notify-send --icon=/usr/share/qubes/icons/qubes.png --expire-time=120000 \
|
||||||
#qdbus $ref showCancelButton true;
|
"Updating default DispVM savefile" "$line1$br$line2$br$line3"
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user