From 4a8e8a349ec3cb61278999a8d6dfd977129f0e19 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 30 Jul 2018 16:59:44 +0200 Subject: gui: kill cl-eye test on start tracking --- gui/ui.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 #include +#include +#include #ifndef _WIN32 # include @@ -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(), current_protocol(), std::make_shared()); { -- cgit v1.2.3