App: inside Application::getLibraryDir() check if an absolute path name is set for LIBRARYDIR

This commit is contained in:
wmayer
2022-05-18 10:20:37 +02:00
parent f90660eb12
commit d0920c5ca8

View File

@@ -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";