Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_InstanceCheck.cpp
34610 views
--- src/slic3r/GUI/InstanceCheck.cpp.orig 2025-10-02 17:32:12 UTC1+++ src/slic3r/GUI/InstanceCheck.cpp2@@ -24,7 +24,7 @@3#include <strsafe.h>4#endif //WIN3256-#if __linux__7+#if defined(__linux__) || defined(__FreeBSD__)8#include <dbus/dbus.h> /* Pull in all of D-Bus headers. */9#endif //__linux__1011@@ -220,7 +220,7 @@ namespace instance_check_internal12return false;13}1415-#elif defined(__linux__)16+#elif defined(__linux__) || defined(__FreeBSD__)1718static bool send_message(const std::string &message_text, const std::string &version)19{20@@ -308,7 +308,7 @@ bool instance_check(int argc, char** argv, bool app_co21hashed_path = std::hash<std::string>{}(boost::filesystem::system_complete(argv[0]).string());22#else23boost::system::error_code ec;24-#ifdef __linux__25+#if defined( __linux__)26// If executed by an AppImage, start the AppImage, not the main process.27// see https://docs.appimage.org/packaging-guide/environment-variables.html#id228const char *appimage_env = std::getenv("APPIMAGE");293031