aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-08-03 21:14:23 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-08-03 21:14:32 +0200
commitbe4fb65470d2a005560e069f7e0969e974767b00 (patch)
treec752791ca33be23c278fe3d1d710995417f0a205
parent6fd3672618f425bb539f4d554a5fda5d1236d042 (diff)
downloadPrismLauncher-be4fb65470d2a005560e069f7e0969e974767b00.tar.gz
PrismLauncher-be4fb65470d2a005560e069f7e0969e974767b00.tar.bz2
PrismLauncher-be4fb65470d2a005560e069f7e0969e974767b00.zip
fix: Add root path detection on OpenBSD
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r--launcher/Application.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index 2bd91fd7..97d41993 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -321,7 +321,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{
// Root path is used for updates and portable data
-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
QDir foo(FS::PathCombine(binPath, "..")); // typically portable-root or /usr
m_rootPath = foo.absolutePath();
#elif defined(Q_OS_WIN32)