convenience: use recursive lookup for schemas

If the schema is not found in the extension directory, fall back
to the default source, allowing for systemwide installation of
extensions.
This commit is contained in:
Giovanni Campagna
2012-02-24 11:22:21 +01:00
parent 0bb2184efb
commit 7b3650fb68
+1 -1
View File
@@ -58,7 +58,7 @@ function getSettings(schema) {
else
schemaSource = GioSSS.get_default();
let schemaObj = schemaSource.lookup(schema, false);
let schemaObj = schemaSource.lookup(schema, true);
if (!schemaObj)
throw new Error('Schema ' + schema + ' could not be found for extension '
+ extension.metadata.uuid + '. Please check your installation.');