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; backendType = BackendType::Virtual;
} else { } else {
if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY")) { if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY")) {
qWarning("No backend specified, automatically choosing Wayland because WAYLAND_DISPLAY is set");
backendType = BackendType::Wayland; backendType = BackendType::Wayland;
} else if (qEnvironmentVariableIsSet("DISPLAY")) { } else if (qEnvironmentVariableIsSet("DISPLAY")) {
qWarning("No backend specified, automatically choosing X11 because DISPLAY is set");
backendType = BackendType::X11; backendType = BackendType::X11;
} else { } else {
qWarning("No backend specified, automatically choosing drm");
backendType = BackendType::Kms; backendType = BackendType::Kms;
} }
} }