{
    "mode": "man",
    "parameter": "glib-compile-schemas",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/glib-compile-schemas/1/json",
    "generated": "2026-09-03T23:31:31Z",
    "synopsis": "glib-compile-schemas [OPTION…] DIRECTORY",
    "sections": {
        "NAME": {
            "content": "glib-compile-schemas - GSettings schema compiler\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "glib-compile-schemas [OPTION…] DIRECTORY\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "glib-compile-schemas  compiles  all the GSettings XML schema files in DIRECTORY into a binary\nfile with the name gschemas.compiled that can be used by GSettings. The XML schema files must\nhave the filename extension .gschema.xml. For a detailed description of the XML file  format,\nsee the GSettings documentation.\n\nAt  runtime, GSettings looks for schemas in the glib-2.0/schemas subdirectories of all direc‐\ntories specified in the XDGDATADIRS environment variable. The  usual  location  to  install\nschema files is /usr/share/glib-2.0/schemas.\n\nIn  addition  to  schema files, glib-compile-schemas reads ‘vendor override’ files, which are\nkey files that can override default values for keys in the schemas. The group  names  in  the\nkey  files are the schema ID, and the values are written in serialized GVariant form.  Vendor\noverride files must have the filename extension .gschema.override.\n\nBy convention, vendor override files begin with nn where nn is  a  number  from  00  to  99.\nHigher  numbered files have higher priority (e.g. if the same override is made in a file num‐\nbered 10 and then again in a file numbered 20, the override from 20 will take precedence).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h --help",
                    "content": "Print help and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Print program version and exit.\n",
                    "long": "--version"
                },
                {
                    "name": "--targetdir <TARGET>",
                    "content": "Store gschemas.compiled in the TARGET directory instead of DIRECTORY.\n",
                    "long": "--targetdir",
                    "arg": "<TARGET>"
                },
                {
                    "name": "--strict",
                    "content": "Abort on any errors in schemas. Without this option, faulty schema files are simply  omit‐\nted from the resulting compiled schema.\n",
                    "long": "--strict"
                },
                {
                    "name": "--dry-run",
                    "content": "Don’t  write  gschemas.compiled. This option can be used to check .gschema.xml sources for\nerrors.\n",
                    "long": "--dry-run"
                },
                {
                    "name": "--allow-any-name",
                    "content": "Do not enforce restrictions on key names. Note that this option is purely to facility  the\ntransition from GConf, and will be removed at some time in the future.\n\n\nGLIB-COMPILE-SCHEMAS()",
                    "long": "--allow-any-name"
                }
            ]
        }
    },
    "summary": "glib-compile-schemas - GSettings schema compiler",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print help and exit."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print program version and exit."
        },
        {
            "flag": "",
            "long": "--targetdir",
            "arg": "<TARGET>",
            "description": "Store gschemas.compiled in the TARGET directory instead of DIRECTORY."
        },
        {
            "flag": "",
            "long": "--strict",
            "arg": null,
            "description": "Abort on any errors in schemas. Without this option, faulty schema files are simply omit‐ ted from the resulting compiled schema."
        },
        {
            "flag": "",
            "long": "--dry-run",
            "arg": null,
            "description": "Don’t write gschemas.compiled. This option can be used to check .gschema.xml sources for errors."
        },
        {
            "flag": "",
            "long": "--allow-any-name",
            "arg": null,
            "description": "Do not enforce restrictions on key names. Note that this option is purely to facility the transition from GConf, and will be removed at some time in the future. GLIB-COMPILE-SCHEMAS()"
        }
    ],
    "examples": [],
    "see_also": []
}