Set library paths for Linux too when USE_BUNDLE is set

This commit is contained in:
Jonas Kvinge
2020-05-17 17:01:35 +02:00
parent b7494eb381
commit 15b2bfbb29

View File

@@ -175,7 +175,7 @@ int main(int argc, char* argv[]) {
return 0;
}
#if defined(Q_OS_MACOS) && defined(USE_BUNDLE)
#if defined(USE_BUNDLE) && (defined(Q_OS_LINUX) || defined(Q_OS_MACOS))
qLog(Debug) << "Looking for resources in" << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR;
QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR);
#endif