From 546bcd7caf2eb8ea079ae7ce6e0baf82cc1286a28e4e7c634086fd35adb25f2e Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Sat, 2 Nov 2019 23:03:59 +0000 Subject: [PATCH] Accepting request 744927 from home:nuklly:branches:server:messaging Fixed runtime error of not finding "libcomposeplatforminputcontextplugin.so" OBS-URL: https://build.opensuse.org/request/show/744927 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=111 --- patch.py | 1 + tdesktop.patch | 2 ++ 2 files changed, 3 insertions(+) diff --git a/patch.py b/patch.py index 4c7650a..0b64758 100644 --- a/patch.py +++ b/patch.py @@ -123,6 +123,7 @@ def process_telegram_linux(jsonobj): child.remove("'-lcomposeplatforminputcontextplugin'") child.remove("'-lfcitxplatforminputcontextplugin'") child.remove("'-lhimeplatforminputcontextplugin'") + child.remove("'-libusplatforminputcontextplugin'") child.remove("'-lnimfplatforminputcontextplugin'") child = jsonobj["'conditions'"][0][1]["'cflags_cc'"] diff --git a/tdesktop.patch b/tdesktop.patch index 3e90c14..1bd2390 100644 --- a/tdesktop.patch +++ b/tdesktop.patch @@ -17,6 +17,8 @@ index 3ba28309b..e280c44fa 100644 Logs::start(this); // must be started before Platform is started Platform::start(); // must be started before Sandbox is created ++ // I don't know why path is not in QT_PLUGIN_PATH by default ++ QCoreApplication::addLibraryPath("/usr/lib64/qt5/plugins"); + // without this Telegram doesn't start on Ubuntu 17.04 due GTK errors + setenv("QT_STYLE_OVERRIDE", "qwerty", false); + // Telegram doesn't start when extraordinary theme is set, see launchpad.net/bugs/1680943