forked from pool/telegram-desktop
3e6e4c093d
- Upgrade to 1.9.3 * Videos in chats start playing automatically. * Resume playback from where you left off when watching long videos and listening to long audio tracks. * Control automatic playback for videos, GIFs and round video messages in Settings > Advanced > Automatic media download. * Enjoy system spell checker support on all modern systems. OBS-URL: https://build.opensuse.org/request/show/764829 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=115
38 lines
1.8 KiB
Diff
38 lines
1.8 KiB
Diff
diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.cpp b/Telegram/SourceFiles/platform/linux/linux_libs.cpp
|
|
index 5071d63..f8c0f20 100644
|
|
--- a/Telegram/SourceFiles/platform/linux/linux_libs.cpp
|
|
+++ b/Telegram/SourceFiles/platform/linux/linux_libs.cpp
|
|
@@ -237,15 +237,15 @@ void start() {
|
|
bool indicatorLoaded = false;
|
|
bool isWayland = QGuiApplication::platformName().startsWith(qsl("wayland"), Qt::CaseInsensitive);
|
|
QLibrary lib_gtk, lib_indicator;
|
|
- if (loadLibrary(lib_indicator, "ayatana-appindicator3", 1) || loadLibrary(lib_indicator, "appindicator3", 1)) {
|
|
- if (loadLibrary(lib_gtk, "gtk-3", 0)) {
|
|
+ if (loadLibrary(lib_indicator, "ayatana-appindicator", 1) || loadLibrary(lib_indicator, "appindicator", 1)) {
|
|
+ if (loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
|
|
gtkLoaded = setupGtkBase(lib_gtk);
|
|
indicatorLoaded = setupAppIndicator(lib_indicator);
|
|
}
|
|
}
|
|
if ((!gtkLoaded || !indicatorLoaded) && !isWayland) {
|
|
- if (loadLibrary(lib_indicator, "ayatana-appindicator", 1) || loadLibrary(lib_indicator, "appindicator", 1)) {
|
|
- if (loadLibrary(lib_gtk, "gtk-x11-2.0", 0)) {
|
|
+ if (loadLibrary(lib_indicator, "ayatana-appindicator3", 1) || loadLibrary(lib_indicator, "appindicator3", 1)) {
|
|
+ if (loadLibrary(lib_gtk, "gtk-3", 0)) {
|
|
gtkLoaded = indicatorLoaded = false;
|
|
gtkLoaded = setupGtkBase(lib_gtk);
|
|
indicatorLoaded = setupAppIndicator(lib_indicator);
|
|
@@ -255,10 +255,10 @@ void start() {
|
|
|
|
// If no appindicator, try at least load gtk.
|
|
if (!gtkLoaded && !indicatorLoaded) {
|
|
- 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);
|
|
}
|
|
}
|