mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Default to Wayland on GNOME for new installs
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user