meld - gi._glib.GError: Icon 'meld-change-apply-right' not present in theme. What is wrong with the installation?
Asked Answered
C

5

14

I have managed to install the meld 3.14.2 and all the dependency packages, by compiling each package from source and all are installed on a NFS share with --prefix=<base>/meldfor the meld tool && --prefix=<base>/meld/deps for the dependencies.

Finally, I invoked the tool and I can see the GUI. But when I try to do some functionality testing, it throws me errors. I have never used the tool. So, I don't know how it is supposed to work exactly. But users have pointed out the following error, and there can be many other errors too I guess. But the following is one of it.

$meld
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
II 1
Traceback (most recent call last):
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/newdifftab.py", line 117, in on_button_compare_clicked
tab = self.diff_methods[self.diff_type](compare_paths)
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/meldwindow.py", line 647, in append_filediff
doc = filediff.FileDiff(len(files))
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/filediff.py", line 281, in __init__
from meld.gutterrendererchunk import GutterRendererChunkAction
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/gutterrendererchunk.py", line 33, in <module>
class GutterRendererChunkAction(GtkSource.GutterRendererPixbuf):
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/gutterrendererchunk.py", line 38, in GutterRendererChunkAction
MODE_REPLACE: load("meld-change-apply-right"),
File "/applics/platform/meld/meld-3.14.2/lib/python2.7/site-packages/meld/gutterrendererchunk.py", line 30, in load
return icon_theme.load_icon(icon_name, LINE_HEIGHT, 0)
File "/applics/platform/meld/meld-3.14.2/dependencies/lib/python2.7/site-packages/gi/types.py", line 113, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: Icon 'meld-change-apply-right' not present in theme

Please tell me what could be wrong?

The following variables I have used throughout the installation and while using the tool.

PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH, PYTHONPATH, GSETTINGS_SCHEMA_DIR

The reason for using all these paths is it is completely customized installation, as there were already existing GTK etc versions running on the servers and we don't want to disturb them and want a separate setup for meld, and also in a way that the same installation shared on NFS can be used from multiple servers.

But, unlike the other tools that we usually install, meld has very serious dependencies and we need to compile complex packages like GTK.

Anyhow, can any one tell us what's the wrong with the current installation? And do I need to set more variables and references or do I need to install the modules again with extra options? Now, I have only installed recommended dependencies for each package and left optional package dependencies.

And coming to the error, I can find the png file in my installation <base>/meld/share/icons/hicolor/16x16/actions/meld-change-apply-right.png, then why the tool is unable to find it? What is theme means here?

I was actually quite proud of myself after seeing the window, but now it seems it's just an empty window with zero functionality :(

enter image description here

Culture answered 4/3, 2016 at 10:55 Comment(0)
P
22

I got that error as well, and
Reinstalling meld & gnome-icon-theme fixed my problem:

sudo apt-get install --reinstall meld gnome-icon-theme

without the --reinstall, I'm only getting the following for my Ubuntu 18.04.1 LTS:

$ sudo apt-get install meld gnome-icon-theme
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gnome-icon-theme is already the newest version (3.12.0-3).
meld is already the newest version (3.18.0-6).
Pleiad answered 21/12, 2018 at 20:3 Comment(5)
Meld was displaying no text (filenames in directory comparison were missing), this fixed it.Araucaria
Same issue as Terry, same solution.Deutzia
Thanks a lot, fixed this issue on Ubuntu 20.04Tadeo
Installing gnome-icon-theme fixed it for me (ubuntu 20.04). ThanksProgression
Worked for me in Fedora 36 as well. Installing gnome-icon-themeLeonleona
T
9

I solved on Ubuntu 16.04 with

sudo apt-get install gnome-icon-theme
Touber answered 14/8, 2018 at 9:0 Comment(1)
that's all i needed! I'm running i3, i guess I don't always have all the gnome bells and whistles - i'm okay with that! but this one i needed, thanks.Perceive
H
2

I had a similar problem running Meld 3.16.0 on Archlinux. In my case the specific error message was GLib.Error: gtk-icon-theme-error-quark: Icon 'meld-change-apply-right' not present in theme gnome (0).

I "fixed" it by creating symbolic links from the directory the Meld icons were installed in to the place Meld is apparently looking for these icons. In my case that that meant ln -s /usr/share/icons/hicolor/16x16/actions/meld* /usr/share/icons/gnome/16x16/actions/.

I consider this a work around rather than a real solution, but at least Meld is working correctly now.

Heptavalent answered 8/6, 2016 at 19:47 Comment(2)
Hi..in my case even after creating soft links same issue happens. Any varialble we need to set?Culture
I'm not sure, but you can try rebuilding the icon cache with something like sudo gtk-update-icon-cache --force /usr/share/icons/hicolor and sudo gtk-update-icon-cache --force /usr/share/icons/gnome (perhaps changing the paths as appropriate). See the bug report at bugzilla.gnome.org/show_bug.cgi?id=767396Heptavalent
A
1

I solved reinstalling meld

$ sudo apt-get install meld

(a new version was available in debian stretch). Issue disappeared.

Anglia answered 20/9, 2016 at 20:57 Comment(0)
C
0

Reinstalling solved the problem in my case as well on CentOs 7.

sudo yum remove meld
sudo yum install meld
Coatbridge answered 6/6, 2018 at 9:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.