freebsd-ports/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI.cpp
zielonka michal 79e5fba255 cad/PrusaSlicer: update to 2.6.0
PR:		272730
Reported by:	michal.zielonka.8001@gmail.com
Approved by:	teodorsigaev@gmail.com (maintainer)
2023-07-28 14:47:57 +02:00

20 lines
754 B
C++

--- src/slic3r/GUI/GUI.cpp.orig 2023-07-21 15:02:36 UTC
+++ src/slic3r/GUI/GUI.cpp
@@ -481,7 +481,7 @@ void desktop_open_folder(const boost::filesystem::path
const wxString widepath = path.wstring();
const wchar_t* argv[] = { L"explorer", widepath.GetData(), nullptr };
::wxExecute(const_cast<wchar_t**>(argv), wxEXEC_ASYNC, nullptr);
-#elif __APPLE__
+#elif defined(__APPLE__) || defined(__FreeBSD__)
const char* argv[] = { "open", path.string().c_str(), nullptr };
::wxExecute(const_cast<char**>(argv), wxEXEC_ASYNC, nullptr);
#else
@@ -490,7 +490,7 @@ void desktop_open_folder(const boost::filesystem::path
#endif
}
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
namespace {
wxExecuteEnv get_appimage_exec_env()
{