diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-07-15 21:18:55 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-07-15 21:30:53 -0400 |
commit | e7fd6d849feaea45d76cda1eb074c9ea59b85637 (patch) | |
tree | ee014c5ab816989bf19c730f16373359453bb2e0 /gsettings | |
parent | c37c49a0c25505e0136158b56aba3703db0fa828 (diff) | |
download | dconf-e7fd6d849feaea45d76cda1eb074c9ea59b85637.tar.gz |
Many improvements
- support the notion of 'profiles'
This is how we will configure layering of databases in dconf. It's
not wired-up yet (except to choose the name of the user database).
- support multiple writers in the service
Using the (very freshly API-broken) GDBus subtree support.
Introspection returns the names of existing databases, but any
object path can be used to create a new database.
- support the start of the 'shm' file
Used to prevent the reader from reopening the gvdb every time.
dconf reads now involve zero system calls in the usual case.
The server is queried on startup for the location of the shm files.
By default, this is in ~/.cache/dconf/ for now. This won't work
properly on NFS, but it's a start.
Diffstat (limited to 'gsettings')
-rw-r--r-- | gsettings/dconfsettingsbackend.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gsettings/dconfsettingsbackend.c b/gsettings/dconfsettingsbackend.c index 3daecc7..66c0881 100644 --- a/gsettings/dconfsettingsbackend.c +++ b/gsettings/dconfsettingsbackend.c @@ -594,10 +594,24 @@ dconf_settings_backend_sync (GSettingsBackend *backend) g_static_mutex_unlock (&dcsb->lock); } +static GVariant * +dconf_settings_backend_service_func (DConfEngineMessage *dcem) +{ + g_assert (dcem->bus_type == 'e'); + + return g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SESSION, + NULL, NULL), + dcem->destination, dcem->object_path, + dcem->interface, dcem->method, + dcem->body, dcem->reply_type, + 0, -1, NULL, NULL); +} + static void dconf_settings_backend_init (DConfSettingsBackend *dcsb) { - dcsb->engine = dconf_engine_new (NULL); + dconf_engine_set_service_func (dconf_settings_backend_service_func); + dcsb->engine = dconf_engine_new (); } static void |