Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_InstanceCheck.cpp
34610 views
1
--- src/slic3r/GUI/InstanceCheck.cpp.orig 2025-10-02 17:32:12 UTC
2
+++ src/slic3r/GUI/InstanceCheck.cpp
3
@@ -24,7 +24,7 @@
4
#include <strsafe.h>
5
#endif //WIN32
6
7
-#if __linux__
8
+#if defined(__linux__) || defined(__FreeBSD__)
9
#include <dbus/dbus.h> /* Pull in all of D-Bus headers. */
10
#endif //__linux__
11
12
@@ -220,7 +220,7 @@ namespace instance_check_internal
13
return false;
14
}
15
16
-#elif defined(__linux__)
17
+#elif defined(__linux__) || defined(__FreeBSD__)
18
19
static bool send_message(const std::string &message_text, const std::string &version)
20
{
21
@@ -308,7 +308,7 @@ bool instance_check(int argc, char** argv, bool app_co
22
hashed_path = std::hash<std::string>{}(boost::filesystem::system_complete(argv[0]).string());
23
#else
24
boost::system::error_code ec;
25
-#ifdef __linux__
26
+#if defined( __linux__)
27
// If executed by an AppImage, start the AppImage, not the main process.
28
// see https://docs.appimage.org/packaging-guide/environment-variables.html#id2
29
const char *appimage_env = std::getenv("APPIMAGE");
30
31