File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,11 @@ function settings_new_id(schema_id: string): Settings | null {
32
32
33
33
function settings_new_schema ( schema : string ) : Settings {
34
34
const GioSSS = Gio . SettingsSchemaSource ;
35
- // const schemaDir = Me.dir .get_child('schemas');
35
+ const schemaDir = Gio . File . new_for_path ( get_current_path ( ) ) . get_child ( 'schemas' ) ;
36
36
37
- // let schemaSource = schemaDir.query_exists(null)
38
- // ? GioSSS.new_from_directory(get_current_path(), GioSSS.get_default(), false)
39
- // : GioSSS.get_default();
40
-
41
- // get_current_path()
42
-
43
- let schemaSource = GioSSS . new_from_directory ( `${ get_current_path ( ) } /schemas/` , GioSSS . get_default ( ) , false ) ;
37
+ let schemaSource = schemaDir . query_exists ( null )
38
+ ? GioSSS . new_from_directory ( schemaDir . get_path ( ) , GioSSS . get_default ( ) , false )
39
+ : GioSSS . get_default ( ) ;
44
40
45
41
const schemaObj = schemaSource . lookup ( schema , true ) ;
46
42
You can’t perform that action at this time.
0 commit comments