wayland: print warning about automatic backend selection

BUG: 457491
This commit is contained in:
Xaver Hugl 2022-08-04 21:23:47 +02:00
parent aaa5e6fee3
commit 02f55e0e40

View file

@ -468,10 +468,13 @@ int main(int argc, char *argv[])
backendType = BackendType::Virtual;
} else {
if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY")) {
qWarning("No backend specified, automatically choosing Wayland because WAYLAND_DISPLAY is set");
backendType = BackendType::Wayland;
} else if (qEnvironmentVariableIsSet("DISPLAY")) {
qWarning("No backend specified, automatically choosing X11 because DISPLAY is set");
backendType = BackendType::X11;
} else {
qWarning("No backend specified, automatically choosing drm");
backendType = BackendType::Kms;
}
}