Re: Troubles with icon themes
- Date: Sat, 26 Jan 2019 19:27:14 +1300
- From: Ben Cooksley <bcooksley@xxxxxxx>
- Subject: Re: Troubles with icon themes
On Wed, Jan 23, 2019 at 4:48 PM Jonathan Schultz <jonathan@xxxxxxxxxx> wrote:
> Hello KDE developers,
> I wonder if someone can help me work out what is going on here.
> I have build some KDE applications (konsole and okular) from source using kdesrc-build, using QT5 version 5.11.3 also built from sources. The applications build and run, but do not load the icons used in the UI. I have the following lines in ~/.config/kdeglobals:
> > [Icons]
> > Theme=oxygen
> and running strace on the application reveals that it is finding and crawling the oxygen icon theme directories. However, if I rename the oxygen theme directory to hicolor then the application does find the icons correctly.
> I have written a trivial Qt test, using 'QIcon::setThemeName("oxygen")' to set the theme and it works fine.
> I also note that kiconfinder5 also finds the icons in the oxygen directory.
> I've tried some reverse-engineering/debugging but succeeded only in getting lost in the code.
> One thing I suspect it that the problem might be related to my development environment, which is a sandboxed Docker container with no display manager installed. I understand that KDE tries to work out what icon theme is already in use by an installed display manager, so perhaps this environment is somehow triggering some unexpected (by me at least) behaviour.
By any chance, is the environment variable XDG_CURRENT_DESKTOP set
when applications are launched within the Docker container?
If not, it probably should be set to 'KDE' otherwise the appropriate
QPA won't be loaded and you won't get any icons loaded (as the theme
won't be known to the application)
> Thanks as always.