mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Use QT_QPA_PLATFORM if provided.
This commit is contained in:
parent
d43853460e
commit
df06f55c7f
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ FilteredCommandLineArguments::FilteredCommandLineArguments(
|
||||||
#endif // !Q_OS_WIN
|
#endif // !Q_OS_WIN
|
||||||
}
|
}
|
||||||
#elif defined Q_OS_UNIX
|
#elif defined Q_OS_UNIX
|
||||||
if (Platform::DesktopEnvironment::IsGnome()) {
|
if (Platform::DesktopEnvironment::IsGnome() && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
|
||||||
pushArgument("-platform");
|
pushArgument("-platform");
|
||||||
pushArgument("xcb;wayland");
|
pushArgument("xcb;wayland");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue