{
    "mode": "man",
    "parameter": "glib-compile-schemas",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/glib-compile-schemas/1/json",
    "generated": "2026-06-03T01:51:11Z",
    "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",
            "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\ndirectories specified in the XDGDATADIRS environment variable. The usual location to\ninstall schema 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 (eg: if the same override is made in a file\nnumbered 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\n--targetdir=TARGET\nStore gschemas.compiled in the TARGET directory instead of DIRECTORY.\n",
                    "long": "--version"
                },
                {
                    "name": "--strict",
                    "content": "Abort on any errors in schemas. Without this option, faulty schema files are simply\nomitted 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\n\nGIO                                                                            GLIB-COMPILE-SCHEM(1)",
                    "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 --targetdir=TARGET 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 omitted 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. GIO GLIB-COMPILE-SCHEM(1)"
        }
    ],
    "examples": [],
    "see_also": []
}