From 46354155b0bdc86bb0c71ea6faf371b3fd7a5f31 Mon Sep 17 00:00:00 2001
From: Jaakko Keranen jaakko.keranen@iki.fi
Date: Sun, 1 Nov 2020 13:34:46 +0200
Subject: [PATCH 1/1] App: Compiling on "Other" platforms
Testing on OpenBSD.
src/app.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app.c b/src/app.c
index 311a88bb..a6632811 100644
--- a/src/app.c
+++ b/src/app.c
@@ -74,7 +74,7 @@ static const char *dataDir_App_ = "~/Library/Application Support/fi.skyjake.Lagr
#define EMB_BIN "../resources.binary"
static const char *dataDir_App_ = "~/AppData/Roaming/fi.skyjake.Lagrange";
#endif
-#if defined (iPlatformLinux)
+#if defined (iPlatformLinux) || defined (iPlatformOther)
#define EMB_BIN "../../share/lagrange/resources.binary"
static const char *dataDir_App_ = "~/.config/lagrange";
#endif
@@ -1221,7 +1221,7 @@ void openInDefaultBrowser_App(const iString *url) {
setArguments_Process(proc,
#if defined (iPlatformApple)
iClob(newStringsCStr_StringList("/usr/bin/open", cstr_String(url), NULL))
-#elif defined (iPlatformLinux)
+#elif defined (iPlatformLinux) || defined (iPlatformOther)
iClob(newStringsCStr_StringList("/usr/bin/x-www-browser", cstr_String(url), NULL))
#elif defined (iPlatformMsys)
iClob(newStringsCStr_StringList(
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).