2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Default to Wayland on GNOME for new installs

This commit is contained in:
Ilya Fedin
2022-07-28 07:33:04 +04:00
committed by John Preston
parent 7a61693034
commit bb8ffcac3a
2 changed files with 15 additions and 2 deletions

View File

@@ -9,7 +9,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/platform_launcher.h"
#include "platform/platform_specific.h"
#include "platform/linux/linux_desktop_environment.h"
#include "base/platform/base_platform_info.h"
#include "base/platform/base_platform_file_utilities.h"
#include "ui/main_queue_processor.h"
@@ -62,7 +61,9 @@ FilteredCommandLineArguments::FilteredCommandLineArguments(
#endif // !Q_OS_WIN
}
#elif defined Q_OS_UNIX
if (Platform::DesktopEnvironment::IsGnome() && qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
if (QFile::exists(cWorkingDir() + qsl("tdata/nowayland"))
&& qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
LOG(("Wayland: Disable on old installations"));
pushArgument("-platform");
pushArgument("xcb;wayland");
}