Bug 457581

Summary: [non-KDE] no icons unless a theme is explicitly configured
Product: [Applications] dolphin Reporter: Hugo Osvaldo Barrera <hugo>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot of what dolphin looks like out-of-the-box

Description Hugo Osvaldo Barrera 2022-08-07 10:24:15 UTC
Created attachment 151160 [details]
Screenshot of what dolphin looks like out-of-the-box

SUMMARY

When running dolphin on a non-KDE setup (in my case, swaywm), dolphin will render no icons by default.

This is kind of a "known issue", and Arch's wiki describes a workaround: installing qt5ct, picking an icon theme and then setting an environment variable whenever running Dolphin.

While the workaround works, it provides a very poor out-of-the-box experience. If a user has not explicitly chosen an icon theme, using _any_ icon theme would be better than none. The initial impression is otherwise very poor, and even using the wrong icons would give a better impression (those not using KDE shouldn't be surprised by a theme mismatch anyway).

OBSERVED RESULT

All icons are blank. See screenshot.

EXPECTED RESULT

Render using any icon theme..

SOFTWARE/OS VERSIONS
Linux: Linux 5.19.0-rc7-asahi-2-1-ARCH aarch64 GNU/Linux
KDE Plasma Version: this issue is specific to non-KDE setups
Qt Version: qt5-base is 5.15.5+kde+r174-1, though this is not a new issue at all

ADDITIONAL INFORMATION

It's possible the issue at hand is not Dolphin-specific an actually in some dependency/framework that's in use here. If so, please let me know which component that is and I can report to the correct place.
Comment 1 Hugo Osvaldo Barrera 2022-08-07 10:25:50 UTC
Oh, QT_QPA_PLATFORMTHEME is unset.
Comment 2 Hugo Osvaldo Barrera 2023-03-12 09:27:29 UTC
Installing the "breeze" icon theme works (e.g.: it gets used automatically).
It seems that dolphin tries to use Breeze by default, even if it's not installed.

I think the issue here is that dolphin tries to use breeze even if it's not installed, rather than falling back to any of the installed icon themes.