Use EGLFS platform plugin if X and Wayland aren't detected
This commit is contained in:
parent
5520a52379
commit
aff2ed22b9
1 changed files with 6 additions and 0 deletions
|
|
@ -300,6 +300,12 @@ int main(int argc, char *argv[])
|
||||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (qgetenv("QT_QPA_PLATFORM").isEmpty()) {
|
||||||
|
qInfo() << "Unable to detect Wayland or X11, so EGLFS will be used by default. Set QT_QPA_PLATFORM to override this.";
|
||||||
|
qputenv("QT_QPA_PLATFORM", "eglfs");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This avoids using the default keychain for SSL, which may cause
|
// This avoids using the default keychain for SSL, which may cause
|
||||||
// password prompts on macOS.
|
// password prompts on macOS.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue