Index: src/slic3r/GUI/GUI.hpp
--- src/slic3r/GUI/GUI.hpp.orig
+++ src/slic3r/GUI/GUI.hpp
@@ -74,7 +74,7 @@ extern void desktop_open_datadir_folder();
 // Ask the destop to open the directory specified by path using the default file explorer.
 void desktop_open_folder(const boost::filesystem::path& path);
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
 // Calling wxExecute on Linux with proper handling of AppImage's env vars.
 // argv example: { "xdg-open", path.c_str(), nullptr }
 void desktop_execute(const char* argv[]);
