-rw-r--r-- | core/launcher/main.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 20a1ecd..e96eeae 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp @@ -32,2 +32,3 @@ #include <opie/odevice.h> +#include <opie/oprocess.h> @@ -46,4 +47,2 @@ -#include "../calibrate/calibrate.h" - using namespace Opie; @@ -120,6 +119,10 @@ int initApplication( int argc, char ** argv ) if ( !QFile::exists( "/etc/pointercal" ) ) { - // Make sure calibration widget starts on top. - Calibrate *cal = new Calibrate; - cal->exec(); - delete cal; + OProcess cal; + cal << "calibrate"; + + if ( ! cal.start(OProcess::Block, OProcess::NoCommunication) ) { + QMessageBox::warning( 0, "Unable to calibrate", + "Failed to start the calibration tool.\n" + ); + } } |