dispvm: do not start GUI apps during prerun

Apparently it doesn't help much with DispVM startup time, but causes a
lot of problems when such app do not close in time (either can be killed
forcibly and will complain about it at next run, or will spontaneously
show itself when DispVM is started).
Cette révision appartient à :
Marek Marczykowski-Górecki 2015-04-11 02:43:03 +02:00
Parent 285071bd59
révision 3c8a294221

Voir le fichier

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
apps="evince /usr/libexec/evinced soffice firefox" apps="/usr/libexec/evinced"
#If user have customized DispVM settings, use its home instead of default dotfiles #If user have customized DispVM settings, use its home instead of default dotfiles
if [ -e /rw/home/user/.qubes-dispvm-customized ]; then if [ -e /rw/home/user/.qubes-dispvm-customized ]; then
@ -22,10 +22,10 @@ while true; do
break; break;
fi fi
PREV_IO=$IO PREV_IO=$IO
sleep 1 sleep 2
done done
ps ax > /tmp/dispvm-prerun-proclist.log ps aufwwx > /tmp/dispvm-prerun-proclist.log
echo "Closing windows..." echo "Closing windows..."
/usr/lib/qubes/close-window `xwininfo -root -children|tail -n +7 |awk '{print $1}'` /usr/lib/qubes/close-window `xwininfo -root -children|tail -n +7 |awk '{print $1}'`