summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-12-11 12:20:21 +0800
committerErik Kundiman <erik@megapahit.org>2025-12-11 12:20:21 +0800
commitea409cbe1b331699c15a5c0e32f90ced23d89ca9 (patch)
treec4a9f79a62686f4a73da3425beb4ffbb4fe5b747
parente3a35af2c676fb211ff7d01a79eb1a3299bc82f3 (diff)
Adjust open path on FreeBSD
Had forgotten it's a bit different, before.
-rw-r--r--indra/newview/llexternaleditor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llexternaleditor.cpp b/indra/newview/llexternaleditor.cpp
index 5d8b83f623..fcddf4afad 100644
--- a/indra/newview/llexternaleditor.cpp
+++ b/indra/newview/llexternaleditor.cpp
@@ -49,8 +49,10 @@ LLExternalEditor::EErrorCode LLExternalEditor::setCommand(const std::string& env
static const std::string os_cmd = "%SystemRoot%\\explorer.exe \"%s\"";
#elif LL_DARWIN
static const std::string os_cmd = "/usr/bin/open \"%s\"";
-#elif LL_LINUX || __FreeBSD__
+#elif LL_LINUX
static const std::string os_cmd = "/usr/bin/xdg-open \"%s\"";
+#elif __FreeBSD__
+ static const std::string os_cmd = "/usr/local/bin/xdg-open \"%s\"";
#endif
cmd = findCommand("", os_cmd);
if (cmd.empty())