Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628846 - kde-apps/kmail:5 - missing icons if $DE is not Plasma
Summary: kde-apps/kmail:5 - missing icons if $DE is not Plasma
Status: RESOLVED DUPLICATE of bug 564838
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 17:40 UTC by kavol
Modified: 2017-11-07 08:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2017-08-24 17:40:56 UTC
after the recent upgrade to KF5, I have found that the new version of kmail (kde-apps/kmail-17.04.3:5) is unable to display icons which severely breaks usability

I have found this mentioned here:
https://archives.gentoo.org/gentoo-user/message/c9d4c240084a23ecb82ba1d734e7153c
but without solution

please tell me what information would help to debug this; I doubt that 'emerge --info' or so would be of any use here ...

what might be of interest is that my workflow is to run kmail remotely over xpra from terminal, not from KDE session - this is what I have common with Mick who says he uses Enlightenment, i.e. he also doesn't run it from KDE session
Comment 1 kavol 2017-08-25 08:07:14 UTC
digging into this further, I have found that setting QT_QPA_PLATFORMTHEME helps - in my case, I've used `export QT_QPA_PLATFORMTHEME=lxqt` before running kmail

this value seems to be set when I log in via graphical login manager (sddm) but empty otherwise

now it looks to me broken by design ... how is that the old version worked just fine in my setup and the new one has this problem?
is that too much these days to expect things to work out of the box, without having to google and set your own workarounds (which you'll probably forget by the time the next major version is released, so it may cause unexpected breakages in that future new version which would be impossible to debug for an ordinary user ...)?

p.s. for others affected coming here:
there is an utility that allows to configure graphical theme for Qt called `qt5ct`, independently on your desktop environment (you even don't have to have any DE), which sets its own theme, so you have to run the applications (and this utility) with 'QT_QPA_PLATFORMTHEME=qt5ct'
Comment 2 Andreas Sturmlechner gentoo-dev 2017-08-30 17:05:10 UTC
There's not much we can do here I'm afraid. If you don't use a desktop environment that provides a platformtheme for Qt you have to set it up yourself, as you describe.
Comment 3 kavol 2017-08-31 12:49:47 UTC
well, I can imagine that ...

if (all) Qt apps need this, let's add the variable to /etc/env.d on Qt install, the same as e.g. XDG_DATA_DIRS in 30xdg-data-local/90xdg-data-base; login via graphical manager would then override the value

OR

if it is used via some function, let's patch it (and propose the change upstream)

for example, I see messages like:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-kavol'

so why not something like:

QSomeFunction: QT_QPA_PLATFORMTHEME not set, defaulting to 'qt-plain'

?


imagine you buy a new car, and you have to turn on the radio (because everyone listens to the radio, right?) to be able to open the windows, otherwise if you don't want to play radio, then you have to google (it's not written in user manual) and find out that you have to crawl under the car to connect some jumper to be able to open windows without having the radio on

sounds insane?

how is that similar things in software are considered perfectly okay?

I mean - nothing personal here, I understand this comes from upstream - this really shouldn't be thrown on user; obviously, as the link I have provided shows, it is not just my problem, and there are more other cases (by other I don't mean other people but other configurations that exhibit the problem), so it should be solved at one place instead of telling everyone to write own config hack

so please consider the above proposals, or anything better you can come up with; unfortunately, my knowledge is too limited to write a patch myself :-(
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-08-31 13:27:55 UTC
I agree, it is insane.

The last time that I saw this brought up upstream, the answer was that every environment is expected to provide their own QPA plugin for everything to work properly. That sounds nice in theory, but in practice of course it will never work.

Instead (last time I checked), it just tries to use the active icon theme or fall back to hicolor, so in the case of many KDE applications which have custom icons the user just gets no icon instead.

We've thought about downstream solutions but I'm really not sure if it's a good idea to try globally overriding QT_QPA_PLATFORMTHEME and friends.
Comment 5 Andreas Sturmlechner gentoo-dev 2017-11-05 15:27:32 UTC
Let's use one single bug for this topic.

*** This bug has been marked as a duplicate of bug 564838 ***
Comment 6 kavol 2017-11-06 17:13:21 UTC
(In reply to Andreas Sturmlechner from comment #5)
> Let's use one single bug for this topic.
> 
> *** This bug has been marked as a duplicate of bug 564838 ***

ahem, sure it is the same topic?

as I understand it, that one is about icons not being available, this one is about icons not being used ...?
Comment 7 Andreas Sturmlechner gentoo-dev 2017-11-07 07:59:48 UTC
It is exactly the same.
Comment 8 kavol 2017-11-07 08:13:30 UTC
ok, I take your word :-)

thanks for working on this

honestly ... my own bugzilla backlog is just growing and growing :-/