I'm curious if gsettings can be used to store objects, or must everything be set statically? Could objects such as users objects be stored in gsettings? Could users be added and deleted with fixed properties on each user?
In the docs they mention "relocatable" schema which you can create with g_settings_new_with_path()
. This allows you to dynamically store 'objects' with the same schema in different locations. So you can create /org/mysite/users/bob/
and in it have properties like full-name
that every user 'object' would have. You would still store a list referencing them to know which schema exist. To remove them you can use g_settings_reset()
on each key.