meld - GLib-GIO-ERROR**: No GSettings schemas are

2020-04-16 04:43发布

问题:

I have installed meld 3.14.2, at last (on NFS share in Redhat 6.3 server), after nearly 40 hours of efforts , installing each and every dependency and at last seems to be successful. But one finale error needs to be solved:

(meld:20703): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped)

There was answer here: GLib-GIO-ERROR**: No GSettings schemas are installed on the system

I am not aware of these jargons before. So, please explain in detail what to do.

Do I need to set the variable $XDG_DATA_DIR or not? And if, why and what should be the value?

And I can find that the compiled file is already located in MyApp/share/glib-2.0/schemas.

However, I have also tried the following, even though the compiled schema is already there:

glib-complile-schemas <PATH_TO_SCHEMAS> --targetdir=MyApp/share/glib-2.0/schemas

But still I am getting the error. I have tried the variable too by setting it to MyApp and MyApp/share/glib-2.0/schemas. That too doesn't work.

I have also tried reinstalling gsettings-desktop-config. Still error. In my case, it's 3.12 version.

So, what's going on here?? Please explain. I have been sleepless. :(

Thanks you!

And also for your information, I have installed all the dependencies GTK+,ATK,CAIRO,PANGO etc... under the same installation directory with prefix=<base>/meld/deps.

Example:

  • meld binaries resides as follows: <base>/meld/bin/

  • cairo binaries are installed as follows: <base>/meld/deps/bin/

  • atk binaries are installed as follows: <base>/meld/deps/bin/

Similarly, you can think of other dependencies

回答1:

Well I am unsure why you are installing it to its own prefix... but just setting GSETTINGS_SCHEMA_DIR to the full path to the schema dir should work.