From 620c85f264f8175552aab041b4ced2d39c132cbb Mon Sep 17 00:00:00 2001
From: test <test@SlicerOSXbot.local>
Date: Mon, 7 Sep 2020 22:00:01 +0200
Subject: [PATCH] Fix on OSX

---
 src/slic3r/Utils/Process.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/slic3r/Utils/Process.cpp b/src/slic3r/Utils/Process.cpp
index 83438390c..e29160870 100644
--- a/src/slic3r/Utils/Process.cpp
+++ b/src/slic3r/Utils/Process.cpp
@@ -45,7 +45,7 @@ static void start_new_slicer_or_gcodeviewer(const NewSlicerInstanceType instance
     boost::filesystem::path bin_path = into_path(wxStandardPaths::Get().GetExecutablePath());
 	#if defined(__APPLE__)
 	{
-		bin_path /=	(instance_type == NewSlicerInstanceType::Slicer) ? "PrusaSlicer" : "PrusaGCodeViewer";
+		bin_path =	bin_path.parent_path() / ((instance_type == NewSlicerInstanceType::Slicer) ? "PrusaSlicer" : "PrusaGCodeViewer");
 		// On Apple the wxExecute fails, thus we use boost::process instead.
 	    path_to_open ? boost::process::spawn(bin_path.string(), into_u8(*path_to_open)) : boost::process::spawn(bin_path.string());
 	}