docs: Mention XDG_DATA_HOME in glib-compile-schemas manual

glib-compile-schemas considers XDG_DATA_HOME in addition to
XDG_DATA_DIRS since GLib 2.53.2, but this is not mentioned in its manual
and might bring confusion to readers.
This commit is contained in:
Keyu Tao 2024-06-02 03:12:15 +08:00
parent 2bb2595eb9
commit b27e6b1a43

View File

@ -34,9 +34,9 @@ used by ``GSettings``. The XML schema files must have the filename extension
``GSettings`` documentation.
At runtime, GSettings looks for schemas in the ``glib-2.0/schemas``
subdirectories of all directories specified in the ``XDG_DATA_DIRS`` environment
variable. The usual location to install schema files is
``/usr/share/glib-2.0/schemas``.
subdirectories of all directories specified in the ``XDG_DATA_DIRS`` and
``XDG_DATA_HOME`` environment variables. The usual location to install schema
files is ``/usr/share/glib-2.0/schemas``.
In addition to schema files, ``glib-compile-schemas`` reads vendor override
files, which are key files that can override default values for keys in