Package: gio

Function gio:settings-schema-source-default

Lambda List

gio:settings-schema-source-default ()

Return Value

The g:settings-schema-source instance for the default schema source.

Details

Gets the default system schema source. If no schemas are installed, nil will be returned.

This function is not required for normal uses of GSettings but it may be useful to authors of plugin management systems or to those who want to introspect the content of schemas.

The returned source may actually consist of multiple schema sources from different directories, depending on which directories were given in XDG_DATA_DIRS and GSETTINGS_SCHEMA_DIR. For this reason, all lookups performed against the default source should probably be done recursively.
 

See also

2026-03-24