Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/cad/PrusaSlicer/files/patch-src_slic3r_GUI_GUI.cpp
18157 views
1
--- src/slic3r/GUI/GUI.cpp.orig 2024-12-20 11:54:34 UTC
2
+++ src/slic3r/GUI/GUI.cpp
3
@@ -296,7 +296,7 @@ void desktop_open_folder(const boost::filesystem::path
4
const wxString widepath = path.wstring();
5
const wchar_t* argv[] = { L"explorer", widepath.GetData(), nullptr };
6
::wxExecute(const_cast<wchar_t**>(argv), wxEXEC_ASYNC, nullptr);
7
-#elif __APPLE__
8
+#elif defined(__APPLE__) || defined(__FreeBSD__)
9
const char* argv[] = { "open", path.string().c_str(), nullptr };
10
::wxExecute(const_cast<char**>(argv), wxEXEC_ASYNC, nullptr);
11
#else
12
@@ -305,7 +305,7 @@ void desktop_open_folder(const boost::filesystem::path
13
#endif
14
}
15
16
-#ifdef __linux__
17
+#if defined(__linux__) || defined(__FreeBSD__)
18
namespace {
19
wxExecuteEnv get_appimage_exec_env()
20
{
21
22