From f3fd1d2035c4d4f2b7370866eb89a5d540bccb69 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 18 May 2022 10:20:37 +0200 Subject: [PATCH] App: inside Application::getLibraryDir() check if an absolute path name is set for LIBRARYDIR --- src/App/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index fb1a577356..03db14e7bb 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -1143,6 +1143,9 @@ std::string Application::getLibraryDir() { #ifdef LIBRARYDIR std::string path(LIBRARYDIR); + QDir dir(QString::fromStdString(path)); + if (dir.isAbsolute()) + return path; return mConfig["AppHomePath"] + path; #else return mConfig["AppHomePath"] + "lib";