listGSettingsSchemas function
Get the names of the installed GSettings schemas. These schemas can be accessed using a GSettings object.
Implementation
Future<List<String>> listGSettingsSchemas({List<String>? schemaDirs}) async {
var schemaNames = <String>{};
for (var dir in _getSchemaDirs(schemaDirsPath: schemaDirs)) {
try {
var database = GVariantDatabase('${dir.path}/gschemas.compiled');
schemaNames.addAll(await database.list(dir: ''));
} on FileSystemException {
continue;
}
}
return schemaNames.toList();
}