From a0c7fa30c061e19725035131bc3c36b2aa86d59e Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Thu, 4 Aug 2022 21:47:35 +0200 Subject: [PATCH] Merge pull request #1019 from Scrumplex/fix-openbsd-root Add root path detection on OpenBSD --- launcher/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 2bd91fd70..97d419931 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)