The typical workflow to install a Gsettings Schema is this:
Create a schema, with the extension
.gschema.xml, with contents like this:<?xml version="1.0" encoding="UTF-8"?> <schemalist> <schema id="com.companyname.appname" path="/com/companyname/appname/"> <key type="b" name="mybool"> <default>false</default> <summary>Example summary</summary> <description>Example description</description> </key> </schema> </schemalist>Copy the schema to
/usr/share/glib-2.0/schemas/.Compile the schema by running this command:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
However, writing to /usr/share/glib-2.0/schemas/ requires root privileges. Is there a way to install a schema to a non-global user directory?