Gio.Settings.new_with_path

function new_with_path(schema_id: String, path: String): Gio.Settings {
    // Gjs wrapper for g_settings_new_with_path()
}
  

Creates a new Gio.Settings object with the relocatable schema specified by schema_id and a given path.

You only need to do this if you want to directly create a settings object with a schema that doesn't have a specified path of its own. That's quite rare.

It is a programmer error to call this function for a schema that has an explicitly specified path.

It is a programmer error if path is not a valid path. A valid path begins and ends with '/' and does not contain two consecutive '/' characters.

Since 2.26

schema_id

the id of the schema

path

the path to use

Returns

a new Gio.Settings object