29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
diff -Naur tdesktop-1.2.6.orig/Telegram/SourceFiles/platform/linux/linux_libs.cpp tdesktop-1.2.6/Telegram/SourceFiles/platform/linux/linux_libs.cpp
|
|
--- Telegram/SourceFiles/platform/linux/linux_libs.cpp 2017-12-30 11:13:48.000000000 +0100
|
|
+++ Telegram/SourceFiles/platform/linux/linux_libs.cpp 2018-01-17 11:41:49.593275952 +0100
|
|
@@ -253,24 +253,12 @@
|
|
indicatorLoaded = setupAppIndicator(lib_indicator);
|
|
}
|
|
}
|
|
- if (!gtkLoaded || !indicatorLoaded) {
|
|
- if (loadLibrary(lib_indicator, "appindicator", 1)) {
|
|
- if (loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
|
|
- gtkLoaded = indicatorLoaded = false;
|
|
- gtkLoaded = setupGtkBase(lib_gtk);
|
|
- indicatorLoaded = setupAppIndicator(lib_indicator);
|
|
- }
|
|
- }
|
|
- }
|
|
|
|
// If no appindicator, try at least load gtk.
|
|
if (!gtkLoaded && !indicatorLoaded) {
|
|
if (loadLibrary(lib_gtk, "gtk-3", 0)) {
|
|
gtkLoaded = setupGtkBase(lib_gtk);
|
|
}
|
|
- if (!gtkLoaded && loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
|
|
- gtkLoaded = setupGtkBase(lib_gtk);
|
|
- }
|
|
}
|
|
|
|
if (gtkLoaded) {
|