Your message dated Tue, 23 May 2017 13:37:21 +0300
with message-id <[email protected]>
and subject line Bug#861251: telegram-desktop: please unset QT_QPA_PLATFORMTHEME
has caused the Debian Bug report #861251,
regarding telegram-desktop: please unset QT_QPA_PLATFORMTHEME
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
861251: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861251
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Version: 1.1.0-1

Now QT_QPA_PLATFORMTHEME environment variable is automatically unset at
start up so the bug should be closed. But I think a real solution is
still needed.

--- End Message ---

Reply via email to