[gnome-session] support empty session



commit 08dd0d00f0475da623693b7772a2de2be21aa5d8
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date:   Wed Jan 23 14:11:12 2013 +0100

    support empty session
    
    This will be useful for a better systemd integration
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690866
    Signed-off-by: Marc-Antoine Perennou <Marc-Antoine Perennou com>

 gnome-session/gsm-session-fill.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnome-session/gsm-session-fill.c b/gnome-session/gsm-session-fill.c
index d1419f5..d01e34d 100644
--- a/gnome-session/gsm-session-fill.c
+++ b/gnome-session/gsm-session-fill.c
@@ -185,10 +185,8 @@ get_session_keyfile_if_valid (const char *path)
                                                    &len, NULL);
                 if (list)
                         g_strfreev (list);
-                if (len == 0) {
-                        g_warning ("Cannot use session '%s': no component in the session.", path);
-                        goto error;
-                }
+                if (len == 0)
+                        g_warning ("Session '%s': no component in the session.", path);
         }
 
         return keyfile;



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