Source: telegram-desktop
Version: 1.0.14-1
Severity: wishlist
Tags: patch
Hi Maintainer
While trying to troubleshoot telegram-desktop hanging on startup in
Ubuntu [1], I found that with ubuntu-mate-default-settings installed,
QT_QPA_PLATFORMTHEME is set to gtk2 and similarly, with appmenu-qt5
installed, QT_QPA_PLATFORMTHEME is set to appmenu-qt5.
I was able to reproduce the problem with either of these packages
installed. I was able to work around the problem by starting
telegram-desktop from a terminal as follows:
$ QT_QPA_PLATFORMTHEME= telegram-desktop
I found the following in
debian/patches/Avoid-depending-on-static-libraries.patch:
--- a/Telegram/SourceFiles/main.cpp
+++ b/Telegram/SourceFiles/main.cpp
...
+ // without this Telegram doesn't start on Ubuntu 17.04 due GTK errors
+ setenv("QT_STYLE_OVERRIDE", "qwerty", false);
Adding the following line below the 'setenv("QT_STYLE_OVERRIDE"' line
worked for me:
+ unsetenv("QT_QPA_PLATFORMTHEME");
For which Ubuntu desktop environment did you need to setenv
QT_STYLE_OVERRIDE? It does not seem to be set in Unity or MATE, so
removing that line from the patch had no effect for me.
Regards
Graham
[1] https://bugs.launchpad.net/ubuntu/+source/telegram-desktop/+bug/1680943