mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 07:35:02 +03:00
b7cc7b4e02
While we're here, make the host path detection more portable.
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Martin=20B=C5=99=C3=ADza?= <m@rtinbriza.cz>
|
|
Date: Wed, 15 Dec 2021 21:09:35 +0100
|
|
Subject: [PATCH] Hack: Force searching for plugins in /usr/local
|
|
|
|
I really don't know how else to do this but I'm sure there is a proper
|
|
way to handle this. But this works and doesn't break the system so
|
|
whatever for now.
|
|
---
|
|
src/corelib/kernel/qcoreapplication.cpp | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
|
|
index 4d69ca9a17d2e24911e92792062a0ab264b83758..527a8ee672d7416b7b915d33d6711e9a1aed2e46 100644
|
|
--- a/src/corelib/kernel/qcoreapplication.cpp
|
|
+++ b/src/corelib/kernel/qcoreapplication.cpp
|
|
@@ -2746,6 +2746,12 @@ QStringList QCoreApplication::libraryPathsLocked()
|
|
}
|
|
#endif // Q_OS_DARWIN
|
|
|
|
+#ifdef Q_OS_SERENITY
|
|
+ coreappdata()->app_libpaths->append("/usr/local");
|
|
+ coreappdata()->app_libpaths->append("/usr/local/lib");
|
|
+ coreappdata()->app_libpaths->append("/usr/local/plugins");
|
|
+#endif // Q_OS_SERENITY
|
|
+
|
|
QString installPathPlugins = QLibraryInfo::path(QLibraryInfo::PluginsPath);
|
|
if (QFile::exists(installPathPlugins)) {
|
|
// Make sure we convert from backslashes to slashes.
|