GTK4 Apps Missing Icons

For whatever reason a few days ago, I noticed that apps that use gtk4. Regardless of whether or not they use libadwaita refuse to use my icon theme. In fact, I can’t change the icon theme at all.

I tried changing it back to adwaita instead of papirus, but regardless of if I set the icon theme with dconf editor, gsettings, nwg-look, lxappearance, or even gnome-tweaks. Some apps just appear to be missing icons. It shows that generic error triangle.

Furthermore, as I scoured the internet and came across threads like these with similar issues.

https://www.reddit.com/r/archlinux/comments/1npbhgt/icons_missing_and_gtk_apps_crashing_after/

I’ve tried all of the solutions mentioned in these threads to no avail. The only thing that worked was downgrading the gtk package as mentioned here.

Although I had to downgrade to version 4.18.6 to get things working again.

Here is what gnome-tweaks looks like when gtk version 4.20.3

Here is what it looks like after downgrading to version version 4.18.6

As you can see the icons are rendered now. Although holding back gtk isn’t ideal. I’ll get to that in a bit.

Lastly, I wanted to add that not all gtk4 apps are affected nor are the affected to the same degree. I first noticed the problem with walker since I recently decided to try out hyprland. I initially made a bug there, but the dev said the problem wasn’t in walker.

Notably apps like resources and flatseal appeared to be fine.

Where as gnome-calendar appears to be missing some icons, but not others.

Which brings me to the last problem. Downgrading gtk4 to a version that fixes the icon issues. Breaks other apps. dino appears transparent and lact is in light mode.

GTK is literally the bane of my existence right now.

I have a laptop where things still seem to be working correctly, but even when using a new user on the broken machine. That doesn’t fix things there.

This is bugging me for a while now too. I don’t know exactly when it started, since I don’t use gnome apps very often. Spend half an hour to semi seriously trying to figure out what’s going on a few weeks ago, but to no avail.

So no advice for a fix, just a “me too”. :pensive_face:

I’ve been using EndeavourOS for over a year now, and while I do really like it, my experience has been that it’s just kind of ugly.

Let me back up… so I use two main distros: Solus and EndeavourOS. The desktop environment for both is Budgie. In Solus, everything integrates beautifully. For example, VLC follows the dark theme and Transmission will have a system tray icon. In EndeavourOS, neither VLC nor Transmission integrate well, and I know Transmission has a GTK interface. I also have the icon issue you’ve described.

However, I need the resources that EndeavourOS has which Solus doesn’t (AUR, for example), so I’ve just grown to accept it as highly functional if a bit homely. I’m sorry I also can’t be of more help.

Have you compared what is running on both? AFAIK Budgie installs with just its defaults (you get it unconfigured) i could be wrong though, just going of the top of my head here

Is anyone aware of a bug report in gtk or its related dependencies glycin and librsvg not related to the issues that I posted previously?

Correction:
Gnome’s idea of uniform design and those funding it are the bane of your existence.

OK figured out mine. Essentially I wrote a single line config change in .config/xdg-desktop-portal/portal.conf and expected a systemd style configuration merging with higher order defaults, which is apparently not the case (see e.g. man portal.conf or this issue).

And that caused issues with the icon theme?

Yes, most icons in gtk apps showed the “not found white rectangle-triangle-exclamation mark” icons. Also now that it’s fixed I notice they weren’t using the right system font either.

Before:

After:

I guess we experienced the same symptoms, but it may have different causes.

I’ll need to test it first before saying my issue is different. I do have a portals.conf file. I just didn’t see how that issue there affected icons. What was the solution? To remove the file of fully flesh it out?

I did a quick test with fleshing out, and that worked. But I don’t really want to maintain it manually and the change I made isn’t that important to me, so I just removed the file for now. Both work.

How it works behind the scene? No clue.

PS: Don’t forget to logout and login after changing the file.

Well you are right. That file was indeed the issue. Although restarting all the portal services via systemd was enough to fix the issue. No need to logout and back in. I have marked your post as the solution. I never would have figured this out.

Didn’t think portals had anything to do with icons.