Skip to content

Commit

Permalink
try to fix running on macOS 11 Big Sur (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Nov 15, 2020
1 parent 14adf9b commit cef6ca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Expand Up @@ -335,6 +335,12 @@ int main(int argc, char **argv)
}
#endif
#ifdef Q_OS_MAC
#if (QT_VERSION < QT_VERSION_CHECK(5, 13, 0))
// Fix launch on Big Sur macOS 11.0
// We can probably remove this when upgrade to Qt 5.15 and update build environment.
// see https://bugreports.qt.io/browse/QTBUG-87014
::qputenv("QT_MAC_WANTS_LAYER", "1");
#endif
// Launcher and Spotlight on macOS are not setting this environment
// variable needed by setlocale() as used by MLT.
if (QProcessEnvironment::systemEnvironment().value(MLT_LC_NAME).isEmpty()) {
Expand Down

0 comments on commit cef6ca3

Please sign in to comment.