2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Use QT_QPA_PLATFORM if provided.

This commit is contained in:
Hans Gaiser
2022-01-14 17:54:10 +01:00
committed by John Preston
parent d43853460e
commit df06f55c7f

View File

@@ -61,7 +61,7 @@ FilteredCommandLineArguments::FilteredCommandLineArguments(
#endif // !Q_OS_WIN
}
#elif defined Q_OS_UNIX
if (Platform::DesktopEnvironment::IsGnome()) {
if (Platform::DesktopEnvironment::IsGnome() && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
pushArgument("-platform");
pushArgument("xcb;wayland");
}