Settings.newWithBackend

gio.settings.Settings newWithBackend(string schemaId, gio.settings_backend.SettingsBackend backend)

Creates a new #GSettings object with the schema specified by schema_id and a given #GSettingsBackend.

Creating a #GSettings 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.

Parameters

schemaIdthe id of the schema
backendthe #GSettingsBackend to use

Returns

a new #GSettings object