From 0e0f78882d2a6d5da20b82557ff8a63738d6c14a Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 13 Jan 2011 16:02:26 +0100 Subject: Script for testing the app ine one go... --- fbbrowser/main.cpp | 1 + fbbrowser/testApp.sh | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 fbbrowser/testApp.sh diff --git a/fbbrowser/main.cpp b/fbbrowser/main.cpp index aa6da2e..fc333fb 100644 --- a/fbbrowser/main.cpp +++ b/fbbrowser/main.cpp @@ -5,6 +5,7 @@ int main(int argc, char *argv[]) { + // This is the main object of a QT Application. QApplication a(argc, argv); // Is this really needed, since we kill the app through the fbbrowser object? QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); diff --git a/fbbrowser/testApp.sh b/fbbrowser/testApp.sh new file mode 100755 index 0000000..4041cf3 --- /dev/null +++ b/fbbrowser/testApp.sh @@ -0,0 +1,15 @@ +#!/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. +/home/joe/fbgui/fbbrowser/fbbrowser -qws +# Check if fbbrowser is not running, if so kill the qvfb. +if ps aux | grep -v grep | grep fbbrowser > /dev/null +then + echo "fbbrowser is still running ..." +else + echo "fbbrowser stopped running, killing qvfb ..." + killall qvfb +fi -- cgit v1.2.3-55-g7522