diff options
author | Ray Strode <rstrode@redhat.com> | 2015-03-06 08:54:19 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-03-06 08:54:19 -0500 |
commit | 62b7f6d2d27f7c4045219f946007681d30d551d8 (patch) | |
tree | 482b1f9f2025b150bec7df8a564af05f03ac5aa3 /common | |
parent | 35538c5ffcdcca90023ede87aac03b74c29ab836 (diff) | |
download | gdm-62b7f6d2d27f7c4045219f946007681d30d551d8.tar.gz |
settings: print custom.conf at startup
This makes it clear what settings gdm is using.
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-settings-desktop-backend.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/gdm-settings-desktop-backend.c b/common/gdm-settings-desktop-backend.c index f91a45b4..a469f30e 100644 --- a/common/gdm-settings-desktop-backend.c +++ b/common/gdm-settings-desktop-backend.c @@ -321,6 +321,7 @@ gdm_settings_desktop_backend_init (GdmSettingsDesktopBackend *backend) { gboolean res; GError *error; + char *contents; backend->priv = GDM_SETTINGS_DESKTOP_BACKEND_GET_PRIVATE (backend); @@ -335,6 +336,13 @@ gdm_settings_desktop_backend_init (GdmSettingsDesktopBackend *backend) if (! res) { g_warning ("Unable to load file '%s': %s", backend->priv->filename, error->message); } + + contents = g_key_file_to_data (backend->priv->key_file, NULL, NULL); + + if (contents != NULL) { + g_debug ("GdmSettings: %s is:\n%s\n", backend->priv->filename, contents); + g_free (contents); + } } static void |