5

(gedit:15131): WARNING: Could not load theme icon text-x-generic: Icon 'text-x-generic' not present in theme Adwaita

This aforementioned warning sign pops up when I open the "gedit" text editor via the Terminal. Would you please be able to help me to fix this problem.....

I'm using Ubuntu 17.04.

4
  • There is no problem, that is only a warning. Gedit should still work fine. If you don't want to see that warning, try launching it with a gedit 2>/dev/null or pressing Alt+F2 then running it from the application finder window.
    – Terrance
    Commented Jul 28, 2017 at 16:13
  • But it says: "text-x-generic" not present in theme
    – DarKnightz
    Commented Jul 28, 2017 at 16:20
  • That's a warning, not an error.
    – Terrance
    Commented Jul 28, 2017 at 16:20
  • It is a warning and if you wish to try to resolve it try reinstalling / installing gnome icon theme. packages.ubuntu.com/search?keywords=gnome-icon-theme
    – Panther
    Commented Jul 28, 2017 at 16:46

3 Answers 3

12

I had the same problem with running the geany editor. I had to install the full package:

sudo apt install adwaita-icon-theme-full
2
  • This actually worked. It fixed not only the adwaita icon theme issue but also the breeze icon theme issue.
    – arielf
    Commented Aug 2, 2019 at 3:22
  • This also fixed meld for me - thanks!
    – Richard
    Commented Jul 7, 2022 at 1:36
4

That is a warning and not an error so it should not cause any problems.

If you want to try to resolve it, install or reinstall gnome icon theme

https://packages.ubuntu.com/search?keywords=gnome-icon-theme

If that does not work, try to find what package provides the icon:

sudo apt-get install apt-file
sudo apt-file update

To search in which package a file is included, enter:

apt-file search text-x-generic

If that fails try

for i in /usr/share/icons/*; do sudo gtk-update-icon-cache $i; done

If that fails, file a bug report.

1
  • 1
    gtk-update-icon-cache: No theme index file.
    – DarKnightz
    Commented Aug 26, 2017 at 15:39
0

Date 2020 March 14, and I was getting similar WARNING messages in Terminal from Gedit and EOG, of missing 'image-loading' in theme Adwaita. Installing adwaita-icon-theme-full per instructions given by user3860088 in 2018 September fixed the annoyance. Many thanks for this information.

$ lsb_release -d ; uname -rp ; gnome-shell --version ; echo $XDG_SESSION_TYPE Description: Ubuntu 19.10 5.3.0-40-generic x86_64 GNOME Shell 3.34.1 wayland

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .