Index: gnome-session-2.27.92/data/Makefile.am
===================================================================
--- gnome-session-2.27.92.orig/data/Makefile.am	2009-09-19 01:58:11.408637010 -0500
+++ gnome-session-2.27.92/data/Makefile.am	2009-09-19 02:23:37.983662325 -0500
@@ -11,7 +11,7 @@
 @INTLTOOL_DESKTOP_RULE@
 
 xsessiondir = $(datadir)/xsessions
-xsession_in_files = gnome.desktop.in
+xsession_in_files = gnome.desktop.in gnome-failsafe.desktop.in
 xsession_DATA = $(xsession_in_files:.desktop.in=.desktop)
 
 @INTLTOOL_SCHEMAS_RULE@
Index: gnome-session-2.27.92/data/gnome-failsafe.desktop.in
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ gnome-session-2.27.92/data/gnome-failsafe.desktop.in	2009-09-19 02:24:11.063641419 -0500
@@ -0,0 +1,8 @@
+[Desktop Entry]
+_Name=Failsafe GNOME
+_Comment=This session logs you into GNOME without user applications
+Exec=gnome-session -f
+TryExec=gnome-session
+X-GDM-FailSafe=true
+Icon=
+Type=Application
Index: gnome-session-2.27.92/gnome-session/main.c
===================================================================
--- gnome-session-2.27.92.orig/gnome-session/main.c	2009-09-19 01:58:11.392638398 -0500
+++ gnome-session-2.27.92/gnome-session/main.c	2009-09-19 02:23:37.983662325 -0500
@@ -488,7 +488,12 @@
         /* Some third-party programs rely on GNOME_DESKTOP_SESSION_ID to
          * detect if GNOME is running. We keep this for compatibility reasons.
          */
-        gsm_util_setenv ("GNOME_DESKTOP_SESSION_ID", "this-is-deprecated");
+        if (failsafe) {
+                gsm_util_setenv ("GNOME_DESKTOP_SESSION_ID", "Failsafe");
+        }
+        else {
+                gsm_util_setenv ("GNOME_DESKTOP_SESSION_ID", "this-is-deprecated");
+        }
 
         client_store = gsm_store_new ();
 
Index: gnome-session-2.27.92/po/POTFILES.in
===================================================================
--- gnome-session-2.27.92.orig/po/POTFILES.in	2009-09-19 01:58:11.400658761 -0500
+++ gnome-session-2.27.92/po/POTFILES.in	2009-09-19 02:23:37.983662325 -0500
@@ -7,6 +7,7 @@
 compat/gnome-settings-daemon-helper.c
 compat/gnome-settings-daemon-helper.desktop.in.in.in
 data/gnome.desktop.in
+data/gnome-failsafe.desktop.in
 data/gnome-session.schemas.in.in
 data/gnome-wm.desktop.in.in
 [type: gettext/glade]data/gsm-inhibit-dialog.ui
