[gdm/gnome-3-14] settings: print custom.conf at startup



commit e2f83d19a0ac51ef4a496f143f66569f2d02522c
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]