Skip to content

Commit 92719af

Browse files
keithel-qtQt Cherry-pick Bot
authored andcommitted
Look for resources in macOS standard Resources dir
When on macOS, with a frameworkless build, WebEngine resources are stored in a Resources directory named with a capital R. This is the standard directory name for resources on macOS, however Qt WebEngine was expecting to find resources in a directory named `resources` (no capitalized first letter). Task-number: QTBUG-72368 Change-Id: I2106a50a63c6d812dc6ad649645e3b6b9e0471e2 Reviewed-by: Michael Brüning <[email protected]> (cherry picked from commit 3a4e3c8) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
1 parent c9727f9 commit 92719af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/web_engine_library_info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ QString resourcesDataPath()
290290
static QString potentialResourcesPath =
291291
#if defined(OS_MACOSX) && defined(QT_MAC_FRAMEWORK_BUILD)
292292
getResourcesPath(frameworkBundle());
293+
#elif defined(OS_MACOSX)
294+
QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/Resources");
293295
#else
294296
QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/resources");
295297
#endif

0 commit comments

Comments
 (0)