-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 @@ | |||
32 | #include <opie/odevice.h> | 32 | #include <opie/odevice.h> |
33 | #include <opie/oprocess.h> | ||
33 | 34 | ||
@@ -46,4 +47,2 @@ | |||
46 | 47 | ||
47 | #include "../calibrate/calibrate.h" | ||
48 | |||
49 | using namespace Opie; | 48 | using namespace Opie; |
@@ -120,6 +119,10 @@ int initApplication( int argc, char ** argv ) | |||
120 | if ( !QFile::exists( "/etc/pointercal" ) ) { | 119 | if ( !QFile::exists( "/etc/pointercal" ) ) { |
121 | // Make sure calibration widget starts on top. | 120 | OProcess cal; |
122 | Calibrate *cal = new Calibrate; | 121 | cal << "calibrate"; |
123 | cal->exec(); | 122 | |
124 | delete cal; | 123 | if ( ! cal.start(OProcess::Block, OProcess::NoCommunication) ) { |
124 | QMessageBox::warning( 0, "Unable to calibrate", | ||
125 | "Failed to start the calibration tool.\n" | ||
126 | ); | ||
127 | } | ||
125 | } | 128 | } |