[gdm] settings: print custom.conf at startup



commit 62b7f6d2d27f7c4045219f946007681d30d551d8
Author: Ray Strode <rstrode redhat com>
Date:   Fri Mar 6 08:54:19 2015 -0500

    settings: print custom.conf at startup
    
    This makes it clear what settings gdm is using.

 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 f91a45b..a469f30 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]