From f144c54e9776c7b78dd56e34278489de91e335e8 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Fri, 12 May 2006 19:45:26 +0000 Subject: Fix bug that was causing the ShowGnomeFailsafeSession and 2006-05-12 Brian Cameron * gui/gdmsession.c: Fix bug that was causing the ShowGnomeFailsafeSession and ShowGnomeXtermSession configuration values not to work right. --- ChangeLog | 6 ++++++ gui/gdmsession.c | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7c99634..57c6e7db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-12 Brian Cameron + + * gui/gdmsession.c: Fix bug that was causing the + ShowGnomeFailsafeSession and ShowGnomeXtermSession configuration + values not to work right. + 2006-05-12 Christian Kirbach * daemon/gdm.c, gui/gdmXnestchosser.c, gui/gdmchooser.c, diff --git a/gui/gdmsession.c b/gui/gdmsession.c index 329dea0d..34c66cac 100644 --- a/gui/gdmsession.c +++ b/gui/gdmsession.c @@ -111,7 +111,6 @@ gdm_session_list_init () GdmSession *session = NULL; gboolean some_dir_exists = FALSE; gboolean searching_for_default = TRUE; - gboolean show_xterm_failsafe; struct dirent *dent; char **vec; char *name; @@ -275,7 +274,6 @@ gdm_session_list_init () gdm_common_error ("%s: Session directory <%s> not found!", "gdm_login_session_init", ve_sure_string (gdm_config_get_string (GDM_KEY_SESSION_DESKTOP_DIR))); - show_xterm_failsafe = TRUE; session_dir_whacked_out = TRUE; } @@ -284,14 +282,11 @@ gdm_session_list_init () ve_sure_string (gdm_config_get_string (GDM_KEY_SESSION_DESKTOP_DIR))); session_dir_whacked_out = TRUE; - show_xterm_failsafe = TRUE; default_session = g_strdup (GDM_SESSION_FAILSAFE_GNOME); } - if (gdm_config_get_bool (GDM_KEY_SHOW_XTERM_FAILSAFE)) - show_xterm_failsafe = TRUE; - if (show_xterm_failsafe) { + if (gdm_config_get_bool (GDM_KEY_SHOW_GNOME_FAILSAFE)) { session = g_new0 (GdmSession, 1); session->name = g_strdup (_("Failsafe _GNOME")); session->comment = g_strdup (_("This is a failsafe session that will log you " @@ -303,7 +298,7 @@ gdm_session_list_init () g_strdup (GDM_SESSION_FAILSAFE_GNOME), session); } - if (show_xterm_failsafe) { + if (gdm_config_get_bool (GDM_KEY_SHOW_XTERM_FAILSAFE)) { session = g_new0 (GdmSession, 1); session->name = g_strdup (_("Failsafe _Terminal")); session->comment = g_strdup (_("This is a failsafe session that will log you " -- cgit v1.2.1