After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686270 - editor: Fix search order of schema dirs
editor: Fix search order of schema dirs
Status: RESOLVED FIXED
Product: dconf-editor
Classification: Other
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: dconf-editor maintainer(s)
dconf-editor maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-17 08:14 UTC by Daiki Ueno
Modified: 2015-02-22 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
editor: Fix search order of schema dirs (1.35 KB, patch)
2012-10-17 08:14 UTC, Daiki Ueno
committed Details | Review

Description Daiki Ueno 2012-10-17 08:14:52 UTC
Under jhbuild shell, suppose XDG_DATA_DIRS is set to:

XDG_DATA_DIRS=/home/ueno/gnome/install/share:/usr/share

In this case, dconf-editor first looks for /home/ueno/gnome/install/share/glib-2.0/schemas and then /usr/share/glib-2.0/schemas.  As a result, the schemas in the first path are overridden by the ones in the latter.

I'm attaching a patch to traverse the path in reverse.  Perhaps it might be better not to override schemas already loaded (in SchemaList.load_directory()).
Comment 1 Daiki Ueno 2012-10-17 08:14:54 UTC
Created attachment 226609 [details] [review]
editor: Fix search order of schema dirs
Comment 2 Robert Ancell 2012-11-08 01:34:17 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 André Klapper 2015-02-22 12:23:46 UTC
[moving dconf>editor tickets to dconf-editor product. See bug 744791]