You are not logged in.

#1 2022-04-06 11:42:28

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

GNOME 42 - Missing Icons, affects geany

With GNOME 42 (in testing) the geany IDE has many broken icons and, if started from the command line, I see warning messages upon moving the mouse over each one.  This is one example:

(geany:10117): Gtk-WARNING **: 12:38:43.597: Error loading theme icon 'window-close' for stock: Icon 'window-close' not present in theme Adwaita

I only looked at a couple, but according to the file list for adwaita-icon-theme (see https://archlinux.org/packages/testing/ … on-theme/) there are are icons with that name.  Does anyone know what is happening here?

Using gnome-tweaks to switch to other icon themes gives various results.  Breeze, ContrastHigh, Enlightenment-X, HighContrast, Mate and Menta all work, as in there are icons visvible in all the places there should be, while Hicolour, KDE_Classic, Mate-black and all the versions of Oxygen don't work.

Last edited by Amphitryon (2022-04-06 11:47:14)

Offline

#2 2022-04-06 13:13:06

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: GNOME 42 - Missing Icons, affects geany

And take a try with this icon theme
As you can see in the screenshot, all icons are displayed

Przechwycenie-obrazu-ekranu-2022-04-06-14-58-59.png


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#3 2022-04-06 13:22:46

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: GNOME 42 - Missing Icons, affects geany

Further to my last message, I looked at the source code for geany and it doesn't seem to be doing anything odd.  I tried reverting just the adwaita-icon-theme package from 42 to 41, keeping the other GNOME 42 packages as-is, and this solved the problem for geany, though obviously the icons in Nautilus etc. were then the old ones again.  Then I noticed that the adwaita-icon-theme package has shrunk significantly between 41 and 42 so I unpacked each into a temporary directory and compared which found lots of files had disappeared.

Offline

#4 2022-04-06 13:33:51

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: GNOME 42 - Missing Icons, affects geany

For now, I have created a merged package that contains the missing files but  this has been logged as a bug against adwaita-icon-theme upstream (https://gitlab.gnome.org/GNOME/adwaita- … issues/184) where the fix seems to be that the stock icons, which are needed for GTK apps and not really part of GNOME, are moving into GTK.

Offline

#5 2022-04-15 09:09:07

jmandawg
Member
Registered: 2011-10-19
Posts: 62

Re: GNOME 42 - Missing Icons, affects geany

Thanks having the same issue with missing icons in pcmanfm.  Downgrading adwaita-icon-theme fixed the issue for now.

Offline

#6 2022-04-15 12:57:09

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: GNOME 42 - Missing Icons, affects geany

In case anyone else wants to do what I did and create a merged set of icons, i.e. the newer GNOME icons and the old stock icons, what I did was run: "asp export adwaita-icon-theme" and then modified the PKGBUILD package subroutine to this:

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  cd /
  find usr/share/icons/Adwaita -type d > "$startdir/dirs"
  find usr/share/icons/Adwaita -type f | grep -Fv 'cache' > "$startdir/files"
  cd "$pkgdir"
  xargs mkdir -p < "$startdir/dirs"
  while read file
  do
    [ -f "$file" ] || cp "/$file" "$file"
  done < "$startdir/files"
}

then ran this with the version 41 adwaita-icon-theme package installed so it could pick up the old stock icons.  That builds a version 42 package with the stock icons that can then be installed with pacman -U.

Offline

#7 2022-04-15 13:27:29

lz3060
Member
Registered: 2006-09-15
Posts: 35

Re: GNOME 42 - Missing Icons, affects geany

I'm not sure if it's the same issue, but some of the icons in FreeCAD are missing for me, since a recent update. Neither adwaita-icon-theme nor creating the merge package like @Amphitryon describes helped. Using cinnamon as desktop environment.

Offline

#8 2022-04-24 16:11:25

PMR021
Member
Registered: 2018-07-16
Posts: 5

Re: GNOME 42 - Missing Icons, affects geany

I had the same problem, namely that various Adwaita icons have been renamed, by adding "-symbolic" to the name and so on -- see e.g. /usr/share/icons/Adawaita/16x16/actions/ and the various other sizes. My fix was to switch theme. You can do this by installing/using gnome-tweaks, or by editing ~/.config/gtk-3.0/settings.ini. But for programs that run under sudo you may need to edit /usr/share/gtk-3.0/settings.ini

Offline

#9 2022-04-26 08:42:02

FEL
Member
Registered: 2022-04-26
Posts: 2

Re: GNOME 42 - Missing Icons, affects geany

Hello,

I'm not sure whether we are waiting for a fix upstream or for a package update ... Regardless I got tired of waiting and did not want to switch themes, or mess around with merges.

My workaround was to download the previous package version: adwaita-icon-theme-41.0-1-any.pkg.tar.zst and drop <package>/usr/share/icons/Adwaita/ in ~/.local/share/icons/adwaita-41.0-1/.

I also edited the Name= variable in ~/.local/share/icons/adwaita-41.0-1/index.theme so that I can separate my local instance and the one managed by Pacman, and switch back effortlessly once the issue has been fixed.

https://i.imgur.com/sL6HxhL.png

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2022-04-26 12:48:26)

Offline

#10 2022-04-26 12:46:16

arjun
Member
Registered: 2005-07-09
Posts: 30

Re: GNOME 42 - Missing Icons, affects geany

This issue seems to be fixed with gtk3 3.24.33-3

Offline

#11 2022-05-16 19:05:16

mrakopes
Member
From: Budweis
Registered: 2022-05-16
Posts: 2

Re: GNOME 42 - Missing Icons, affects geany

Hi, i'm still missing some of the icons in adwaita-icon-theme-42.0+r1+gc144c3d75-1

It seems that some legacy icons were reduced, e.g.:

< /usr/share/icons/Adwaita/32x32/legacy/battery-caution-charging.png
< /usr/share/icons/Adwaita/32x32/legacy/battery-caution.png
< /usr/share/icons/Adwaita/32x32/legacy/battery-empty.png
< /usr/share/icons/Adwaita/32x32/legacy/battery-full-charged.png
< /usr/share/icons/Adwaita/32x32/legacy/battery-full-charging.png

though those icons are still there as symbolic, e.g.:

/usr/share/icons/Adwaita/32x32/legacy/battery-caution-charging-symbolic.symbolic.png
/usr/share/icons/Adwaita/32x32/legacy/battery-caution-symbolic.symbolic.png
/usr/share/icons/Adwaita/32x32/legacy/battery-empty-charging-symbolic.symbolic.png
/usr/share/icons/Adwaita/32x32/legacy/battery-empty-symbolic.symbolic.png
/usr/share/icons/Adwaita/32x32/legacy/battery-full-charged-symbolic.symbolic.png
/usr/share/icons/Adwaita/32x32/legacy/battery-full-charging-symbolic.symbolic.png

I'm trying to solve missing icons in cbatticon and pa-applet-git(aur) packages. Not sure if its a problem of gtk or those apps, using legacy and now unsupported icons. So maybe this is not a gtk bug?


I didn't know almost anything about icons on Linux until few days ago when i upgraded to adwaita-icon-theme-42.0+r1+gc144c3d75-1 and lost some of them. So i'm not entirely sure if there isn't something wrong on my end.

Anyway, for now everything works when i downgrade from adwaita-icon-theme-42.0 to adwaita-icon-theme-41.0-1.

Also, I'm not using GNOME, I'm on X+SDDM+Awesome.

Offline

#12 2022-05-16 20:59:23

mrakopes
Member
From: Budweis
Registered: 2022-05-16
Posts: 2

Re: GNOME 42 - Missing Icons, affects geany

Inspired by FEL's solution (https://bbs.archlinux.org/viewtopic.php … 1#p2033251) i manage to make a fix im quite fine with for now. Maybe somene will find it useful:

I took the legacy icons from adwaita 41 pkg (<package>/usr/share/icons/Adwaita/*/legacy) and put them into ~/.local/share/icons/adwaita-41-legacy and set it to inherit the original Adwaita theme. So now i use the upstream Adwaita v42 icons plus the legacy icons from v41. Seems to work fine.

~/.local/share/icons/adwaita-41-legacy/index.theme:

[Icon Theme]
Name=adwaita-41-legacy
Inherits=Adwaita

(..)

full config: https://gist.github.com/mrakopes/b5a46a … a03678127b

~/.config/gtk-3.0/settings.ini:

[Settings]
gtk-icon-theme-name = adwaita-41-legacy

Offline

#13 2022-05-17 08:06:44

FEL
Member
Registered: 2022-04-26
Posts: 2

Re: GNOME 42 - Missing Icons, affects geany

Nice one, mrakopes! This is an elegant solution that seems to work well. I switched from "my" solution to yours. smile

Offline

Board footer

Powered by FluxBB