1
0

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
This commit is contained in:
Xu Zhao 2019-11-02 23:03:59 +00:00 committed by Git OBS Bridge
parent 264c8ae882
commit 546bcd7caf
2 changed files with 3 additions and 0 deletions

View File

@ -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'"]

View File

@ -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