mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-22 07:09:25 +00:00
Try to remove Wayland blacklist again
This commit is contained in:
parent
dc459d454f
commit
c78a15410d
@ -69,14 +69,7 @@ FilteredCommandLineArguments::FilteredCommandLineArguments(
|
|||||||
pushArgument("cocoa:fontengine=freetype");
|
pushArgument("cocoa:fontengine=freetype");
|
||||||
#endif // !Q_OS_WIN
|
#endif // !Q_OS_WIN
|
||||||
}
|
}
|
||||||
#elif defined Q_OS_UNIX
|
#endif // Q_OS_WIN || Q_OS_MAC
|
||||||
if (QFile::exists(cWorkingDir() + u"tdata/nowayland"_q)
|
|
||||||
&& qEnvironmentVariableIsEmpty("QT_QPA_PLATFORM")) {
|
|
||||||
LOG(("Wayland: Disable on old installations"));
|
|
||||||
pushArgument("-platform");
|
|
||||||
pushArgument("xcb;wayland");
|
|
||||||
}
|
|
||||||
#endif // Q_OS_WIN || Q_OS_MAC || Q_OS_UNIX
|
|
||||||
|
|
||||||
pushArgument(nullptr);
|
pushArgument(nullptr);
|
||||||
}
|
}
|
||||||
|
@ -858,18 +858,6 @@ bool OpenSystemSettings(SystemSettingsType type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewVersionLaunched(int oldVersion) {
|
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()) {
|
if (oldVersion <= 4001001 && cAutoStart()) {
|
||||||
AutostartToggle(true);
|
AutostartToggle(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user