summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index bb7488e33..d05c6a11a 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -260,6 +260,12 @@ bool openBrowser(std::string url)
{
return execFile("/usr/bin/open", "/usr/bin/open", url, "");
}
+#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __DragonFly__
+bool openBrowser(std::string url)
+{
+ return execFile("/usr/local/bin/xdg-open",
+ "/usr/local/bin/xdg-open", url, "");
+}
#elif defined __linux__ || defined __linux
bool openBrowser(std::string url)
{