From 6fd5efeb4733c7ad2f83fdae0b86fb3f4aef1894 Mon Sep 17 00:00:00 2001
From: Tristan Walter <twalter@orn.mpg.de>
Date: Sun, 18 Oct 2020 22:13:10 +0200
Subject: [PATCH] call directly

---
 Application/src/grabber/tgrabs.cpp | 4 ++--
 Application/src/tracker/trex.cpp   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Application/src/grabber/tgrabs.cpp b/Application/src/grabber/tgrabs.cpp
index 8fe4edb..dcefa75 100644
--- a/Application/src/grabber/tgrabs.cpp
+++ b/Application/src/grabber/tgrabs.cpp
@@ -74,11 +74,11 @@ int main(int argc, char** argv) {
     }
     
 #if __APPLE__
-    ss << "open '";
+    ss << "";
 #endif
     ss << target_path;
 #if __APPLE__
-    ss << "TGrabs.app' --args";
+    ss << "TGrabs.app/Contents/MacOS/TGrabs";
 #else
     U_EXCEPTION("Only Apple is supported.");
 #endif
diff --git a/Application/src/tracker/trex.cpp b/Application/src/tracker/trex.cpp
index c8e2e1f..ce22e73 100644
--- a/Application/src/tracker/trex.cpp
+++ b/Application/src/tracker/trex.cpp
@@ -72,11 +72,11 @@ int main(int argc, char** argv) {
     }
     
 #if __APPLE__
-    ss << "open '";
+    ss << "";
 #endif
     ss << target_path;
 #if __APPLE__
-    ss << "TRex.app' --args";
+    ss << "TRex.app/Contents/MacOS/TRex";
 #else
     U_EXCEPTION("Only apple supported.");
 #endif
-- 
GitLab