From b694f1ac893420c73b5aeb9bbfa59d61aee92800 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 21 May 2018 23:40:17 +0200 Subject: [PATCH] One day I will fix it! --- xs/src/slic3r/GUI/GUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index 4a5be5b8e8..aad9702366 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -952,7 +952,8 @@ void desktop_open_datadir_folder() // Enclose the path into single quotes on Unix / OSX. All single quote characters need to be escaped // inside a file name. cmd += '\''; - cmd += boost::replace_all(path, "'", "\\'"); + boost::replace_all(path, "'", "\\'"); + cmd += path; cmd += '\''; #endif ::wxExecute(wxString::FromUTF8(cmd.c_str()), wxEXEC_ASYNC, nullptr);