qubes-linux-template-builder/vm_conf_files/dispvm-prerun.sh
Joanna Rutkowska 2ca048244d Add dispvm-prerun.sh script to template rpm
This script should be part of the Template VM RPM, rather than core RPM, because it is
TemplateVM-specific, i.e. depends on the actual software installed in the VM, and also
is closely related to the dispvm-dotfiles.tbz that is also part of template RPM now.
2010-07-27 15:04:56 +02:00

19 lines
368 B
Bash
Executable File

#!/bin/sh
apps="evince okular openoffice gwenview firefox"
for app in $apps ; do
echo "Launching: $app..."
$app >/tmp/dispvm_prerun_errors.log 2>&1 &
done
echo "Sleeping..."
sleep 120
ps ax > /tmp/dispvm-prerun-proclist.log
cat /etc/dispvm-dotfiles.tbz | tar -xjf- --overwrite -C /home/user --owner user 2>&1 >/tmp/dispvm-dotfiles-errors.log
echo done.