summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon/gdm-session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index dc3b4973..4765a6b5 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -564,6 +564,10 @@ get_fallback_session_name (GdmSession *self)
name = NULL;
session = g_sequence_get_begin_iter (sessions);
+
+ if (g_sequence_iter_is_end (session))
+ g_error ("GdmSession: no session desktop files installed, aborting...");
+
do {
if (g_sequence_get (session)) {
char *base_name;