From 3c8a2942211d59e104e0d607915e82d5a1b99876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 11 Apr 2015 02:43:03 +0200 Subject: [PATCH] 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). --- misc/dispvm-prerun.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/dispvm-prerun.sh b/misc/dispvm-prerun.sh index 91b90cb..971a429 100755 --- a/misc/dispvm-prerun.sh +++ b/misc/dispvm-prerun.sh @@ -1,6 +1,6 @@ #!/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 [ -e /rw/home/user/.qubes-dispvm-customized ]; then @@ -22,10 +22,10 @@ while true; do break; fi PREV_IO=$IO - sleep 1 + sleep 2 done -ps ax > /tmp/dispvm-prerun-proclist.log +ps aufwwx > /tmp/dispvm-prerun-proclist.log echo "Closing windows..." /usr/lib/qubes/close-window `xwininfo -root -children|tail -n +7 |awk '{print $1}'`