From ff3f20bf50ccae00937732673bbb12f1b6be7afe Mon Sep 17 00:00:00 2001
From: Xavier Hallade <xh@novetys.com>
Date: Tue, 2 May 2017 15:28:20 +0200
Subject: tracker/rs: fixed SDK runtime installation cmd

I thought the executable was looked for in workingDir when calling QProcess::startDetached but it's not the case. Providing full path instead.
This method works even when there are spaces in the path, as long as a QStringList() of arguments is specified in the call to QProcess::startDetached.
---
 tracker-rs/ftnoir_tracker_rs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tracker-rs/ftnoir_tracker_rs.cpp b/tracker-rs/ftnoir_tracker_rs.cpp
index c37c751c..89659086 100644
--- a/tracker-rs/ftnoir_tracker_rs.cpp
+++ b/tracker-rs/ftnoir_tracker_rs.cpp
@@ -85,7 +85,7 @@ bool RSTracker::startSdkInstallationProcess()
 {
     static const QString contrib_path(OPENTRACK_BASE_PATH + OPENTRACK_CONTRIB_PATH);
 
-	bool pStarted = QProcess::startDetached("intel_rs_sdk_runtime_websetup_10.0.26.0396.exe", QStringList({ "--finstall=core,face3d","--fnone=all" }), contrib_path);
+	bool pStarted = QProcess::startDetached(contrib_path + "intel_rs_sdk_runtime_websetup_10.0.26.0396.exe", QStringList({ "--finstall=core,face3d","--fnone=all" }));
     if(!pStarted){
         QMessageBox::warning(nullptr,
                              tr("IntelĀ® RealSenseā„¢ Runtime Installation"),
-- 
cgit v1.2.3