Merge pull request #1019 from Scrumplex/fix-openbsd-root

Add root path detection on OpenBSD
This commit is contained in:
Sefa Eyeoglu 2022-08-04 21:47:35 +02:00
parent b7490b479c
commit a0c7fa30c0
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -321,7 +321,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
{ {
// Root path is used for updates and portable data // 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 QDir foo(FS::PathCombine(binPath, "..")); // typically portable-root or /usr
m_rootPath = foo.absolutePath(); m_rootPath = foo.absolutePath();
#elif defined(Q_OS_WIN32) #elif defined(Q_OS_WIN32)