1
0
telegram-desktop/0000-gtk2-default.patch

16 lines
672 B
Diff
Raw Normal View History

--- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp.orig 2020-02-06 11:24:06.271620992 +0100
+++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp 2020-02-06 11:27:36.265427510 +0100
@@ -222,10 +222,10 @@ void start() {
bool isWayland = QGuiApplication::platformName().startsWith(qsl("wayland"), Qt::CaseInsensitive);
QLibrary lib_gtk;
- if (loadLibrary(lib_gtk, "gtk-3", 0)) {
+ if (loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
gtkLoaded = setupGtkBase(lib_gtk);
}
- if (!gtkLoaded && !isWayland && loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
+ if (!gtkLoaded && !isWayland && loadLibrary(lib_gtk, "gtk-3", 0)) {
gtkLoaded = setupGtkBase(lib_gtk);
}