Skip to content

Commit

Permalink
greeter: Look at WAYLAND_DISPLAY for platform detection
Browse files Browse the repository at this point in the history
When running sddm-greeter manually in a wayland session, it otherwise
misdetects that as xcb.
  • Loading branch information
Vogtinator committed Jun 30, 2023
1 parent 387674c commit e27b709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/greeter/GreeterApp.cpp
Expand Up @@ -319,7 +319,7 @@ int main(int argc, char **argv)
platform = QString::fromUtf8(qgetenv("QT_QPA_PLATFORM"));
}
if (platform.isEmpty()) {
platform = QStringLiteral("xcb");
platform = qEnvironmentVariableIsSet("WAYLAND_DISPLAY") ? QStringLiteral("wayland") : QStringLiteral("xcb");
}

// Install message handler
Expand Down

0 comments on commit e27b709

Please sign in to comment.