$OpenBSD: patch-shell_source_unix_exec_shellexec_cxx,v 1.6 2017/07/04 08:17:55 robert Exp $
Index: shell/source/unix/exec/shellexec.cxx
--- shell/source/unix/exec/shellexec.cxx.orig
+++ shell/source/unix/exec/shellexec.cxx
@@ -157,7 +157,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCom
         if (std::getenv("LIBO_FLATPAK") != nullptr) {
             aBuffer.append("/app/bin/xdg-open");
         } else {
-            aBuffer.append("/usr/bin/xdg-open");
+            aBuffer.append("${LOCALBASE}/bin/xdg-open");
         }
 #endif
         aBuffer.append(" ");
@@ -198,7 +198,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCom
     }
 
     OString cmd =
-#ifdef LINUX
+#if defined(LINUX) || defined(__OpenBSD__)
         // avoid blocking (call it in background)
         "( " + aBuffer.makeStringAndClear() +  " ) &";
 #else
