Gio.Settings.new_with_backend

function new_with_backend(schema_id: String, backend: Gio.SettingsBackend): Gio.Settings {
    // Gjs wrapper for g_settings_new_with_backend()
}
  

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

Creating a Gio.Settings object with a different backend allows accessing settings from a database other than the usual one. For example, it may make sense to pass a backend corresponding to the "defaults" settings database on the system to get a settings object that modifies the system default settings instead of the settings for this user.

Since 2.26

schema_id

the id of the schema

backend

the Gio.SettingsBackend to use

Returns

a new Gio.Settings object