shrub/nix/nixcrpkgs/pkgs/qt/font-dir.patch
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

12 lines
422 B
Diff

--- qt-5.8.0-orig/src/gui/text/qplatformfontdatabase.cpp
+++ qt-5.8.0/src/gui/text/qplatformfontdatabase.cpp
@@ -396,7 +396,7 @@
{
QString fontpath = QString::fromLocal8Bit(qgetenv("QT_QPA_FONTDIR"));
if (fontpath.isEmpty())
- fontpath = QLibraryInfo::location(QLibraryInfo::LibrariesPath) + QLatin1String("/fonts");
+ fontpath = QCoreApplication::applicationDirPath();
return fontpath;
}