Bug 467143

Summary: No icons by default on non-KDE
Product: [Applications] Tokodon Reporter: Hugo Osvaldo Barrera <hugo>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carl, josh
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Statusbar screenshot
Screenshot of a toot
Screenshot of hover menu on message in conversation

Description Hugo Osvaldo Barrera 2023-03-10 09:59:58 UTC
Created attachment 157168 [details]
Statusbar screenshot

SUMMARY

I'm running tokodon on a non-KDE setup (specifically, on swaywm, a standalone compositor).

Icons are not rendering. It might be something with my setup. I only have one other Qt application (neochat, also QML) and it has the same issue. I just don't know exactly where these applications read icons though.

I have the following icon-related packages installed on this host:

arc-icon-theme
kiconthemes
adwaita-icon-theme
moka-icon-theme
hicolor-icon-theme

I'm not trying to rice, or be picky or have specific icons -- I mostly want ANY readable icons to render.

STEPS TO REPRODUCE

The easiest way to repro this is probably to install an Arch or Alpiine VM, install sway and tokodon and just run that.

It's a non-trivial amount of effort, so I'm happy to provide further debugging information.

OBSERVED RESULT

Out-of-the-box, no icons are rendered.


EXPECTED RESULT

Out-of-the-box, icons should render OR some clear indication of what's missing.

SOFTWARE/OS VERSIONS
Linux Plasma: Alpine Linux, swaymw (standalone wayland compositor)
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Hugo Osvaldo Barrera 2023-03-10 10:00:19 UTC
Created attachment 157169 [details]
Screenshot of a toot
Comment 2 Hugo Osvaldo Barrera 2023-03-10 10:03:22 UTC
Created attachment 157170 [details]
Screenshot of hover menu on message in conversation
Comment 3 Hugo Osvaldo Barrera 2023-03-10 10:21:58 UTC
Suggestions online indicate that setting `QT_QPA_PLATFORMTHEME=gtk` would make Qt use the same icon theme as GTK, but setting that variable does not show any improvements.
Comment 4 Bug Janitor Service 2023-05-14 01:00:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/228
Comment 5 Joshua Goins 2023-05-21 01:47:36 UTC
Git commit acdc7adfd152cef7834f6aa9711e27fa23229cfb by Joshua Goins.
Committed on 21/05/2023 at 01:47.
Pushed by redstrate into branch 'master'.

Set the custom icon theme to the main icon theme, not the fallback

This seems to fix the icons in GNOME, and possibly more non-KDE
environments.

M  +2    -2    src/main.cpp

https://invent.kde.org/network/tokodon/commit/acdc7adfd152cef7834f6aa9711e27fa23229cfb