From 50b9638d6766551d0b4a867983c0b7b664e830a5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 3 Feb 2020 22:25:04 +0100 Subject: proto/wine: allow disabling freetrack/npclient Fixes #1042 --- proto-wine/ftnoir_protocol_wine.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto-wine/ftnoir_protocol_wine.cpp') diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index 5d46f18a..5955b507 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -19,6 +19,8 @@ wine::~wine() if (shm) { shm->stop = true; exit = wrapper.waitForFinished(100); + if (exit) + qDebug() << "proto/wine: wrapper exit code" << wrapper.exitCode(); } if (!exit) { @@ -92,6 +94,8 @@ module_status wine::initialize() if (s.fsync) env.insert("WINEFSYNC", "1"); + env.insert("OTR_WINE_PROTO", QString::number(s.protocol+1)); + wrapper.setProcessEnvironment(env); wrapper.setWorkingDirectory(OPENTRACK_BASE_PATH); wrapper.start(wine_path, { library_path + "opentrack-wrapper-wine.exe.so" }); -- cgit v1.2.3