#!/bin/sh # Start QT's virtual framebuffer /usr/local/Trolltech/Qt-4.7.1/bin/qvfb -width 800 -height 600 & # Wait for it to load (needed?) sleep 1 # Start the fbbrowser app. # This requires the fbgui git repository to be in the user's home directory. ~/fbgui/fbbrowser/fbbrowser -qws # Check if fbbrowser is not running, if so kill the qvfb. if [ $(ps aux | grep -v grep | grep -c fbbrowser) -eq 1 ] then echo "fbbrowser is still running ..." else echo "fbbrowser stopped running, killing qvfb ..." killall qvfb fi