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 10888e7aad
commit f3fd1d2035

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