summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-30 16:59:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-30 16:59:44 +0200
commit4a8e8a349ec3cb61278999a8d6dfd977129f0e19 (patch)
treef7acbc6e33ecef899ae65bdf6d7e85416a6a435e
parent5e84df3dd2017781dc3ad6ea5f2fe636cb49297a (diff)
gui: kill cl-eye test on start trackingtrackhat-1.2p7trackhat
-rw-r--r--gui/ui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 6d71aadb..b6115600 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -13,8 +13,11 @@
#include "opentrack-compat/options.hpp"
#include "new_file_dialog.h"
#include "wizard.h"
+#include "opentrack-compat/sleep.hpp"
#include <QFileDialog>
#include <QDesktopServices>
+#include <QProcess>
+#include <QDebug>
#ifndef _WIN32
# include <unistd.h>
@@ -302,6 +305,15 @@ void MainWindow::startTracker() {
// tracker dtor needs run first
work = nullptr;
+ {
+ int status = QProcess::execute("taskkill -f -im cl-eyetest.exe");
+ if (!status)
+ {
+ qDebug() << "trackhat: killed cl-eye test";
+ portable::sleep(1000);
+ }
+ }
+
libs = SelectedLibraries(ui.video_frame, std::make_shared<Tracker_PT>(), current_protocol(), std::make_shared<FTNoIR_Filter>());
{