diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-30 16:59:44 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-30 16:59:44 +0200 |
commit | 4a8e8a349ec3cb61278999a8d6dfd977129f0e19 (patch) | |
tree | f7acbc6e33ecef899ae65bdf6d7e85416a6a435e /gui/ui.cpp | |
parent | 5e84df3dd2017781dc3ad6ea5f2fe636cb49297a (diff) |
gui: kill cl-eye test on start trackingtrackhat-1.2p7trackhat
Diffstat (limited to 'gui/ui.cpp')
-rw-r--r-- | gui/ui.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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>()); { |