From 54cfb2bbc4870e5d433de641a79ed224a9fb3289 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 14 Oct 2023 03:28:28 +0200 Subject: [PATCH] main: Don't override library paths --- src/main.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e15cf5b2e..571aa3f3c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -205,19 +205,7 @@ int main(int argc, char *argv[]) { QGuiApplication::setWindowIcon(IconLoader::Load("strawberry")); #if defined(USE_BUNDLE) - { - QStringList library_paths; -#ifdef Q_OS_MACOS - library_paths.append(QCoreApplication::applicationDirPath() + "/../Frameworks"); -#endif -#if defined(Q_OS_LINUX) || defined(Q_OS_MACOS) - library_paths.append(QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR); -#endif - if (!library_paths.isEmpty()) { - qLog(Debug) << "Looking for resources in" << library_paths; - QCoreApplication::setLibraryPaths(library_paths); - } - } + qLog(Debug) << "Looking for resources in" << QCoreApplication::libraryPaths(); #endif // Gnome on Ubuntu has menu icons disabled by default. I think that's a bad idea, and makes some menus in Strawberry look confusing.