From 29c556ffc9b1497cd996ceb46d646b1eaf1288be Mon Sep 17 00:00:00 2001 From: kergoth Date: Sat, 19 Apr 2003 22:07:06 +0000 Subject: Split calibrate out as a standalone application, and ensure taskbar depends on it. This makes ts debugging easier, having a seperate calibration tool around, and as a side affect fixes calibration on the C700, which previously required a reboot to take effect. --- (limited to 'core/launcher/main.cpp') 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 @@ -30,6 +30,7 @@ #endif #include +#include #include #include @@ -44,8 +45,6 @@ #include #include -#include "../calibrate/calibrate.h" - using namespace Opie; void initEnvironment() @@ -118,10 +117,14 @@ int initApplication( int argc, char ** argv ) if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { 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" + ); + } } } -- cgit v0.9.0.2