wayland: print warning about automatic backend selection
BUG: 457491
This commit is contained in:
parent
aaa5e6fee3
commit
02f55e0e40
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue