2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Try to remove Wayland blacklist again

This commit is contained in:
Ilya Fedin
2023-03-20 14:14:56 +04:00
committed by John Preston
parent dc459d454f
commit c78a15410d
2 changed files with 1 additions and 20 deletions

View File

@@ -858,18 +858,6 @@ bool OpenSystemSettings(SystemSettingsType type) {
}
void NewVersionLaunched(int oldVersion) {
if (oldVersion > 0
&& oldVersion <= 4000002
&& qEnvironmentVariableIsSet("WAYLAND_DISPLAY")
&& DesktopEnvironment::IsGnome()
&& !QFile::exists(cWorkingDir() + u"tdata/nowayland"_q)) {
QFile f(cWorkingDir() + u"tdata/nowayland"_q);
if (f.open(QIODevice::WriteOnly)) {
f.write("1");
f.close();
Core::Restart(); // restart with X backend
}
}
if (oldVersion <= 4001001 && cAutoStart()) {
AutostartToggle(true);
}